GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — angularfire2/docs/7-deploying-angularfire-to-firebase.md at master · DerejeKitaw/angularfire2

Expand file tree

/

7-deploying-angularfire-to-firebase.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
23 lines (15 loc) · 1.01 KB
/

7-deploying-angularfire-to-firebase.md

Copy path

File metadata and controls

23 lines (15 loc) · 1.01 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

7. Deploy AngularFire2 to Firebase

0. Build your Angular project for prod

Before you can deploy your angular project, you need to build a version with your prod environment variables. Make sure to add your production firebase configuraiton to the src/environments/environment.prod.ts before you build.

# build the angular project, creates a dist folder in your directory
ng build -prod

1. Run Firebase init

You must initialize Firebase Hosting in order to deploy your application. In order to do this run the firebase init command. This command prompts you to give the public directory. Choose the /dist directory created by the ng build -prod. firebase init will also ask you if you want to overwrite your index file. Type no since your angular app includes a index file.

2. Deploy your Project

To deploy your app, simply run firebase deploy!

For more information on Firebase init and deploy commands, checkout the Firebase CLI documentation.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.