Skip to content

Instantly share code, notes, and snippets.

@juno
Created February 12, 2014 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juno/8954112 to your computer and use it in GitHub Desktop.
Save juno/8954112 to your computer and use it in GitHub Desktop.

heroku pipelinesを導入する

qnyp-ural-stagingでpipelinesを有効にする。

$ heroku labs:enable pipelines -a qnyp-ural-staging

Enabling pipelines for junyaogura@gmail.com... done
WARNING: This feature is experimental and may change or be removed without notice.
For more information see: https://devcenter.heroku.com/articles/using-pipelines-to-deploy-between-applications

heroku cliにプラグインをインストールする。

$ heroku plugins:install git://github.com/heroku/heroku-pipeline.git

stagingのダウンストリームとしてproductionを追加する。

$ heroku pipeline:add qnyp-ural-production -a qnyp-ural-staging
Added downstream app: qnyp-ural-production

設定を確認する。

$ heroku pipeline -a qnyp-ural-staging
Pipeline: qnyp-ural-staging ---> qnyp-ural-production

stagingへデプロイする。

$ git push staging master
git push staging master  0.03s user 0.05s system 0% cpu 1:10.47 total

productionとの差分を確認する。

$ heroku pipeline:diff -a qnyp-ural-staging
Comparing qnyp-ural-staging to qnyp-ural-production...done, qnyp-ural-staging ahead by 1 commit:
  c86aadb  2014-01-05  touch for pipelines test  (Junya Ogura)

アプリをダウンストリームへ公開する。

$ heroku pipeline:promote -a qnyp-ural-staging
Promoting qnyp-ural-staging to qnyp-ural-production..........done, v244
heroku pipeline:promote -a qnyp-ural-staging  0.67s user 0.10s system 3% cpu 25.436 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment