From 6855fe83ef42eae91682a259aa95eeefbacdd3f1 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Fri, 11 Jul 2014 15:06:27 +0200 Subject: [PATCH] Add environment to capistrato deploy --- config/deploy.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/deploy.rb b/config/deploy.rb index 9e871013..077e8d0f 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -47,6 +47,9 @@ namespace :deploy do # Your restart mechanism here, for example: within release_path do #execute :rake, 'cache:clear', as: 'www-data' + with rails_env: fetch(:rails_env) do + execute :rake, "db:migrate" + end execute :rake, 'dedigest_assets', as: 'www-data' end execute :chown, "-R www-data:www-data", release_path