Expects one argument the name of the production stack file for Tutum.
(see https://support.tutum.co/support/solutions/articles/5000569899-stacks )
Requires these environment variables to be set
- CLOUDFLARE_DOMAIN - root domain of your app, e.g. example.com
- CLOUDFLARE_KEY - your Cloudflare API key
- CLOUDFLARE_EMAIL - your Cloudflare email address e.g. fred@example.com
- PROJECT_NAME - a short name for your project e.g. example
- TUTUM_USERNAME - your Tutum username
- TUTUM_PASSWORD - your Tutum password
- CLUSTER_SIZE - final cluster size
NB: The script assumes you have a loadbalancer service within your stack called 'lb'. You should have created a node cluster called ${PROJECT_NAME} and it is assumed that you normally have one node in the cluster and expand to 2 during deployment.