Add environment to capistrato deploy
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user