Skip to content
Create a gist now

Instantly share code, notes, and snippets.

juju rails stack
#!/bin/bash
juju_root=$HOME
juju_env=${1:-"-ecanonical"}
###
echo "deploying stack"
juju bootstrap $juju_env
juju deploy $juju_env --repository "$juju_root/charms" local:mysql
juju deploy $juju_env --repository "$juju_root/charms" --config ~/rails-sample.yaml -n3 local:rails myapp
juju add-relation $juju_env mysql myapp
juju expose $juju_env myapp
juju deploy $juju_env --repository "$juju_root/charms" local:haproxy head
juju add-relation $juju_env myapp head
juju expose $juju_env head
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.