acammies
2018-04-11 60ff08d90a47f9f9694d517c762e725b454d4ae7
added exporting for nexus script in exercise 2
1 files modified
11 ■■■■ changed files
exercises/2-attack-of-the-pipelines/README.md 11 ●●●● patch | view | raw | blame | history
exercises/2-attack-of-the-pipelines/README.md
@@ -234,17 +234,22 @@
  },
```
2. To prepare Nexus to host the binaries created by the frontend and backend builds we need to run this script:
2. To prepare Nexus to host the binaries created by the frontend and backend builds we need to run a prepare-nexus script. Before we do this we need to export some variables.
```bash
export NEXUS_SERVICE_HOST=nexus-<YOUR_NAME>-ci-cd.apps.somedomain.com
export NEXUS_SERVICE_PORT=80
npm run prepare-nexus
```
<p class="tip">
NOTE - This step in a residency would be automated by a more complex nexus deployment in the ci-cd project
</p>
2. To run the application; start a new instance of the MongoDB by running. 
```bash
$ npm run mongo
```
<p class="tip">
`npm run mongo:drop` is used to completely remove the running container. `npm run mongo:stop` & `npm run mongo:start` will preserve data in the container
NOTE - `npm run mongo:drop` is used to completely remove the running container. `npm run mongo:stop` & `npm run mongo:start` will preserve data in the container
</p>
2. Fire up the `todolist-api` by running.