deploy webite firebase code example
Example 1: how to deploy angular site firebase
In the terminal:
$ ng build --prod
$ npm install -g firebase-tools
$ firebase login
$ firebase init
$ firebase deploy
Example 2: firebase deploy
=> firebase login
=> firebase init
=> select Hosting: Configure and deploy ... (press space for select)
=> Use an existing project
=> What do you want to use as your public directory? build
=> Configure as a single-page app? Yes
-----------------------NOW RUN-----------------------
=> npm run build
=> firebase deploy
!!!!! Congrats you just deploy your app !!!!!
Example 3: firebase hosting deploy
firebase deploy