Commit 681f4eb3 authored by Robert Pilstål's avatar Robert Pilstål

Updated README do support the two demos within

parent 027e7cbd
......@@ -4,13 +4,15 @@
## Usage
### App deployment demo
- First edit path to your local (bare) repository with your application in `roles/app/defaults/main.yaml`. If you have yours online (which you should) you can edit the `app` role to mimic the deployment procedure used in Johan's original.
- Make sure that you have ssh-keys setup both locally, and in `dust` dash
- Then boot a VM at ; noting the port for `ssh` access.
- Edit `hosts` to reflect the port, and your login-name on `dust`.
- Edit `hosts` to reflect the port, and your login-name on `dust`. Set the host under `app` group.
Afterh those steps, you should be able to fully configure your host with;
......@@ -30,3 +32,12 @@ ssh -p ${DUST_SSH_PORT} -L ${LOCAL_NODE_PORT}:localhost:${REMOTE_NODE_PORT} ${D
In the above example, then surf to http://localhost:4000 to enjoy your app.
### `systemd-nspawn` verdaccio deployment example
Set your host under the `nspawn` group in `hosts` file. Then run
ansible-playbook -i hosts site.yaml --tags nspawn
After it has finished, you can forward the `4873` port from the remote using the `` script, and access your `verdaccio` service at [http://localhost:4873](http://localhost:4873)
......@@ -4,7 +4,7 @@
[nspawn] ansible_user=robpil
......@@ -16,7 +16,7 @@
- nodejs
- app
- hosts: testing
- hosts: app
become: yes
- mongodb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment