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