Skip to content

Publish webpage to firebase

Jan Greger Hemb edited this page Feb 24, 2020 · 8 revisions

https://alligator.io/angular/deploying-angular-app-to-firebase/

  1. npm install -g firebase-tools
  2. firebase login --interactive
  3. Find current project using firebase projects:list and select it with firebase use ReplaceWithProjectID
  4. Copy the firebase config from src/environment/environment.ts into src/environment/environment.prod.ts
  5. ng build --prod or npm run build -- --prod
  6. firebase deploy
  7. Go to firebase -> the project -> Hosting -> open link

If you want to re-deploy, then redo step 5 to 7