Skip to content

Instantly share code, notes, and snippets.

@shu0115
Created June 25, 2014 03:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shu0115/5a3c7ff8cf130091f49f to your computer and use it in GitHub Desktop.
Save shu0115/5a3c7ff8cf130091f49f to your computer and use it in GitHub Desktop.
CircleCI on Heroku - 簡易自動デプロイ circle.ymlサンプル ref: http://qiita.com/shu_0115/items/496f3c46b09bbbba4d02
deployment:
staging:
branch: staging
commands:
- curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#heroku' -d 'text=【START】ステージング環境へのデプロイを開始しました。' -d 'username=circle_ci' -d 'token=xoxp-xxxxxxxxxx'
- git push git@heroku.com:MY-APP-NAME.git $CIRCLE_SHA1:refs/heads/master
- heroku run rake db:migrate --app MY-APP-NAME
- curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#heroku' -d 'text=【END】ステージング環境へのデプロイが完了しました。' -d 'username=circle_ci' -d 'token=xoxp-xxxxxxxxxx'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment