Skip to content

Commit

Permalink
Add info to README about deploying to production
Browse files Browse the repository at this point in the history
  • Loading branch information
rrlapointe committed Mar 25, 2020
1 parent f967d93 commit 9d696ce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 9d696ce

Please sign in to comment.