Add environment to capistrato deploy

This commit is contained in:
2014-07-11 15:06:27 +02:00
parent eab2b2178f
commit 6855fe83ef
+3
View File
@@ -47,6 +47,9 @@ namespace :deploy do
# Your restart mechanism here, for example: # Your restart mechanism here, for example:
within release_path do within release_path do
#execute :rake, 'cache:clear', as: 'www-data' #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' execute :rake, 'dedigest_assets', as: 'www-data'
end end
execute :chown, "-R www-data:www-data", release_path execute :chown, "-R www-data:www-data", release_path