Read more

Deploy and migrate with a single Capistrano command

Henning Koch
February 15, 2011Software engineer at makandra GmbH

Note that this sounds good but is not good at all when hooking tasks on cap deploy (see this article Show archive.org snapshot ). Make sure to hook your calls properly when using this.


Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

To deploy an application and run all pending migrations before restarting it, you can use the following standard Capistrano task:

cap deploy:migrations

Little is known what happens when the deployment goes through, but a migration or a rake task afterwards fails. Please update this note when you find out.

Posted by Henning Koch to makandra dev (2011-02-15 20:30)