From f015d991172b5d559c8520aa9164e31fada14531 Mon Sep 17 00:00:00 2001 From: Sonu Kapoor Date: Tue, 11 Feb 2020 22:34:51 -0500 Subject: [PATCH] docs: Update doc to use `ng` firebase schematics for deployment (#35355) Previously, the `deployment` section, was using the `firebase` CLI to deploy the angular project into firebase. With the better integration through the `fire` schematics, it is now easier to deploy angular applications into firebase. This commit takes care of this, by outlined the required steps for deployment. Closes #35274 PR Close #35355 --- aio/content/start/deployment.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aio/content/start/deployment.md b/aio/content/start/deployment.md index d859e7331e..7573efb44c 100644 --- a/aio/content/start/deployment.md +++ b/aio/content/start/deployment.md @@ -66,13 +66,13 @@ One of the easiest ways to get your site live is to host it using Firebase. 1. Sign up for a firebase account on [Firebase](https://firebase.google.com/ "Firebase web site"). 1. Create a new project, giving it any name you like. -1. Install the `firebase-tools` CLI that will handle your deployment using `npm install -g firebase-tools`. +1. Add the `@angular/fire` schematics that will handle your deployment using `ng add @angular/fire`. 1. Connect your CLI to your Firebase account and initialize the connection to your project using `firebase login` and `firebase init`. 1. Follow the prompts to select the `Firebase` project you are creating for hosting. - - Select the `Hosting` option on the first prompt. - - Select the project you previously created on Firebase. - - Select `dist/my-project-name` as the public directory. -1. Deploy your application with `firebase deploy`, because the command `firebase init` has created a `firebase.json` file that tells Firebase how to serve your app. + - Select the `Hosting` option on the first prompt. + - Select the project you previously created on Firebase. + - Select `dist/my-project-name` as the public directory. +1. Deploy your application with `ng deploy`. 1. Once deployed, visit https://your-firebase-project-name.firebaseapp.com to see it live! ### Hosting an Angular app anywhere else