-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add info to README about deploying to production
- Loading branch information
1 parent
f967d93
commit 9d696ce
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,17 @@ Run `ng generate component component-name` to generate a new component. You can | |
|
||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. | ||
|
||
## Deploying to userweb | ||
|
||
To build and deploy the app to LNL's production environment, use these commands: | ||
|
||
```console | ||
foo@bar:~/lnl/workorder-wizard$ node_modules/@angular/cli/bin/ng build --prod --base-href '/workorder/' --deploy-url '/workorder/' | ||
foo@bar:~/lnl/workorder-wizard$ rsync -avz --update --checksum dist/workorder-wizard/ [email protected]:/ifs/home/lnl/public_html/workorder | ||
``` | ||
|
||
Then `ssh` into the CCC server and manually delete any old files in `~/public_html/workorder/` that are not part of the latest version you just copied over. | ||
|
||
## Running unit tests | ||
|
||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
|