Skip to content

Commit ba6e2d1

Browse files
author
Jan Mikolajczak
committed
Record a way to deploy the static website to production
1 parent cff7440 commit ba6e2d1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

aviary-angular/README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app w
1111
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|module`.
1212

1313
## Build
14-
Run `ng build` to build the project into the `dist/` directory.
15-
This `dist/` should be deployed to one of the website-hosting buckets in Google storage under the appropriate name.
14+
1. Run `ng build` to build the project into the `dist/` directory.
15+
- This `dist/` should be deployed to one of the website-hosting buckets in Google storage under the appropriate name.
1616
Use the `--env=prod` flag for a production build. Ideally we'd use the `--prod` flag which also turns AOT compilation
17-
on, but this throws an error at the time of writing.
17+
on, but this throws an error at the time of writing.
18+
1. Run `gsutil.cmd rsync -d -r dist gs://aviary.bluehawkqs.eu` to publish it online
19+
20+
TODO set up the website to be loaded over HTTPS using a [CDN](https://cloudplatform.googleblog.com/2015/09/push-google-cloud-origin-content-out-to-users.html)
21+
Alternatively swap to [firebase hosting](https://firebase.google.com/docs/hosting/quickstart)
1822

1923
## Running unit tests
2024

0 commit comments

Comments
 (0)