[email protected]:~/deployer/firebase2$ curl -sL https://firebase.tools | bash

[email protected]:~/deployer/firebase2$ curl -sL https://firebase.tools | bash

[email protected]:~/deployer/firebase2$ firebase init hosting [128/1080]

You’re about to initialize a Firebase project in this directory:

/home/phuong.cao/deployer/firebase2

=== Project Setup

First, let’s associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use –add,
but for now we’ll just set up a default project.

? Please select an option: Create a new project
i If you want to create a project in a Google Cloud organization or folder, please use “firebase projects:create” instead, and return to this command when you’ve created the project.
? Please specify a unique project id (warning: cannot be modified afterward) [6-30 characters]:
lapdatsmarthomecom
? What would you like to call your project? (defaults to your project ID) lapdatsmarthomecom
✔ Creating Google Cloud Platform project
✔ Adding Firebase resources to Google Cloud Platform project

??? Your Firebase project is ready! ???

Project information:

  • Project ID: lapdatsmarthomecom
  • Project Name: lapdatsmarthomecom

Firebase console is available at
https://console.firebase.google.com/project/lapdatsmarthomecom/overview
i Using project lapdatsmarthomecom (lapdatsmarthomecom)

=== Hosting Setup

Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets, use your build’s output directory.

? What do you want to use as your public directory? public
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
? Set up automatic builds and deploys with GitHub? No
✔ Wrote public/index.html

i Writing configuration info to firebase.json…
i Writing project information to .firebaserc…
i Writing gitignore file to .gitignore…

✔ Firebase initialization complete!

ln -s ~/lapdatsmarthome.com/public/ public

[email protected]:~/deployer/firebase2$ ls -l
total 4
-rw-r–r– 1 phuong.cao phuong.cao 236 Feb 6 01:30 firebase.json
lrwxrwxrwx 1 phuong.cao phuong.cao 44 Feb 6 01:30 public -> /home/phuong.cao/lapdatsmarthome.com/public/

[email protected]:~/deployer/firebase2$ firebase deploy

=== Deploying to ‘lapdatsmarthomecom’…

i deploying hosting
i hosting[lapdatsmarthomecom]: beginning deploy…
i hosting[lapdatsmarthomecom]: found 127 files in public
✔ hosting[lapdatsmarthomecom]: file upload complete
i hosting[lapdatsmarthomecom]: finalizing version…
✔ hosting[lapdatsmarthomecom]: version finalized
i hosting[lapdatsmarthomecom]: releasing new version…
✔ hosting[lapdatsmarthomecom]: release complete

✔ Deploy complete!

Project Console: https://console.firebase.google.com/project/lapdatsmarthomecom/overview
Hosting URL: https://lapdatsmarthomecom.web.app

LEAVE A REPLY

Please enter your comment!
Please enter your name here