Skip to content

Commit

Permalink
docs: add security warning, correct default output path
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogarthyde committed Mar 25, 2019
1 parent 692e724 commit 83ba957
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions aio/content/guide/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ Both `ng build` and `ng serve` clear the output folder before they build the pro

<div class="alert is-helpful">

The output folder is `dist/` by default.
The output folder is `dist/project-name/` by default.
To output to a different folder, change the `outputPath` in `angular.json`.

</div>

Serving the contents of your output folder from a local web server can give you a better idea of how your application will behave when it is deployed to a remote server.
As you near the end of the development process, serving the contents of your output folder from a local web server can give you a better idea of how your application will behave when it is deployed to a remote server.
You will need two terminals to get the live-reload experience.

* On the first terminal, run the [`ng build` command](cli/build) in *watch* mode to compile the application to the `dist` folder.
Expand All @@ -43,6 +43,12 @@ You will need two terminals to get the live-reload experience.

The server will automatically reload your browser when new files are output.

<div class="alert is-critical">

This method is for development and testing only, and is not a supported or secure way of deploying an application.

</div>

### Basic deployment to a remote server

For the simplest deployment, create a production build and copy the output directory to a web server.
Expand Down

0 comments on commit 83ba957

Please sign in to comment.