LoginSignup
26
28

More than 5 years have passed since last update.

Heroku Cedar stack を Cedar-10 から Cedar-14 にアップグレード

Last updated at Posted at 2015-03-17

はじめに

以前から使っている Heroku app (ここでは my-app という名前にしておきます)のところへいつも通り push したとき、末尾にメッセージが出ました。アップグレードしろと。

 !   Cedar-10 will reach end-of-life on November 4th, 2015.
 !   Upgrade to Cedar-14 at your earliest convenience.
 !   For more information, check out the following Dev Center article:
 !   https://devcenter.heroku.com/articles/cedar-14-migration

期限までまだ半年以上あるけれども、気付いたときにアップグレード出来るようにメモしておきます。
なお、このメモは簡易作業です。詳細に丁寧に作業を行うならば、メッセージにも含まれているリンク先
Migrating to the Celadon Cedar-14 Stack | Heroku Dev Center
に従って行ってください。

事前確認

$ heroku stack
=== my-app Available Stacks
  bamboo-mri-1.9.2
  bamboo-ree-1.8.7
  cedar-14
* cedar-10

Cedar-10 ですね。

作業開始

Cedar-14にセットする

$ heroku stack:set cedar-14
Stack set. Next release on my-app will use cedar-14.
Run `git push heroku master` to create a new release on cedar-14.

一つの git に対して Heroku app が複数ある場合には heroku stack:set cedar-14 -a my-app のように名前を指定してください。

空コミットする

$ git commit -m "update to cedar-14" --allow-empty
[master 5c8e2f9] update to cedar-14

pushする

$ git push heroku master
Fetching repository, done.
Counting objects: 1, done.
Writing objects: 100% (1/1), 185 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)

-----> Ruby app detected
-----> Compiling Ruby
-----> Using Ruby version: ruby-2.1.5
-----> Installing dependencies using 1.7.12
       Purging Cache. Changing stack from cedar to cedar-14
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
 :
       Using bundler 1.7.12
 :
-----> Launching... done, v000
       https://my-app.herokuapp.com/ deployed to Heroku

To git@heroku.com:my-app.git
   22b3075..5c8e2f9  master -> master

作業は以上です。

事後確認

$ heroku stack
=== my-app Available Stacks
  bamboo-mri-1.9.2
  bamboo-ree-1.8.7
  cedar-10
* cedar-14

Cedar-14 にアップグレード出来ています。

参考

26
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
26
28