Sha256: ecaf84006bb11061c27a0137e8c86207ae24c303040e3aa1b77bc2abdd8533ab

Contents?: true

Size: 1023 Bytes

Versions: 4

Compression:

Stored size: 1023 Bytes

Contents

#!/usr/bin/env sh

if git remote | grep heroku > /dev/null; then
  git push heroku master
else
  read -p "Please provide Heroku application name: " APP_NAME

  if [ APP_NAME == "" ]; then
    echo "¯\_(ツ)_/¯"
    exit 1
  fi

  heroku create "${APP_NAME}"
  heroku git:remote -a "${APP_NAME}"
  heroku config:set SMTP_ADDRESS=smtp.sendgrid.net \
                    SMTP_DOMAIN=heroku.com \
                    SMTP_PASSWORD=placeholder \
                    SMTP_USERNAME=placeholder \
                    HOST="${APP_NAME}.herokuapp.com"

  heroku addons:create mongolab
  heroku addons:create sendgrid:starter

  SENDGRID_USERNAME=$(heroku config:get SENDGRID_USERNAME)
  SENDGRID_PASSWORD=$(heroku config:get SENDGRID_PASSWORD)
  MONGOLAB_URI=$(heroku config:get MONGOLAB_URI)

  heroku config:set SMTP_USERNAME="${SENDGRID_USERNAME}" \
                    SMTP_PASSWORD="${SENDGRID_PASSWORD}" \
                    MONGODB_URI="${MONGOLAB_URI}"

  git push heroku master
  heroku run rake db:seed
  echo "Done"
fi

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
venice-chr-0.1.4 bin/deploy-heroku
venice-chr-0.1.3 bin/deploy-heroku
venice-chr-0.1.2 bin/deploy-heroku
venice-chr-0.1.1 bin/deploy-heroku