Sha256: 7d4cf04576c837a5a782b0f2307094001b053eddd5df13c0ef7a23e22b08b8af
Contents?: true
Size: 915 Bytes
Versions: 1
Compression:
Stored size: 915 Bytes
Contents
#!/bin/sh NAME=$1 ENVIRONMENTS=(master develop testing) tmp_emails=`./fetch_all_emails` EMAILS=(${tmp_emails//\\n/ }) ADMIN_EMAIL=admin@renuo.ch if [ "$NAME" = "" ] then echo "Missing app name" echo "Usage: $0 <app name>" exit 1 fi for var in "${ENVIRONMENTS[@]}" do HEROKU_NAME=$NAME-$var echo "heroku apps:create --region eu $HEROKU_NAME" echo "heroku domains:add $HEROKU_NAME.renuoapp.ch --app $HEROKU_NAME" echo "heroku addons:create heroku-postgresql --app $HEROKU_NAME" echo "heroku addons:create papertrail --app $HEROKU_NAME" echo "heroku pg:backups:schedule DATABASE_URL --at '02:00 Europe/Zurich' --app $HEROKU_NAME" for email in "${EMAILS[@]}" do echo "heroku access:add $email --app $HEROKU_NAME" done echo "heroku access:add $ADMIN_EMAIL --app $HEROKU_NAME" echo "heroku apps:transfer -a $HEROKU_NAME $ADMIN_EMAIL" echo done
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
renuo-cli-1.1.0 | lib/renuo/cli/app/create_heroku_app |