0

I use to have Heroku managing my Rails application deployment but now that I built my own server with Capistrano, Nginix and Unicorn.

In Heroku, when I want to run a rake task, I do this for example:

heroku run rake:migrate VERSION=0

How can I accomplish the same using Capistrano? I cannot seem to find a clear and easy solution.

Thank you.

Maher Manoubi
  • 585
  • 1
  • 6
  • 18

1 Answers1

0

Try:

bundle exec RAILS_ENV=PRODUCTION rake db:migrate VERSION=0

on the project's current directory.

Here you can find more information on topic.

Community
  • 1
  • 1
R Milushev
  • 4,295
  • 3
  • 27
  • 35