Publish webpage to firebase
Jan Greger Hemb edited this page Feb 24, 2020
·
8 revisions
https://alligator.io/angular/deploying-angular-app-to-firebase/
npm install -g firebase-tools
firebase login --interactive
- Find current project using
firebase projects:list
and select it withfirebase use ReplaceWithProjectID
- Copy the firebase config from
src/environment/environment.ts
intosrc/environment/environment.prod.ts
-
ng build --prod
ornpm run build -- --prod
firebase deploy
- Go to firebase -> the project -> Hosting -> open link
If you want to re-deploy, then redo step 5 to 7