Production fixes

This commit is contained in:
2014-07-11 14:55:18 +02:00
parent 7a6177da2c
commit eab2b2178f
4 changed files with 17 additions and 8 deletions
+8 -4
View File
@@ -45,7 +45,12 @@ namespace :deploy do
task :restart do
on roles(:app), in: :sequence, wait: 5 do
# Your restart mechanism here, for example:
within release_path do
#execute :rake, 'cache:clear', as: 'www-data'
execute :rake, 'dedigest_assets', as: 'www-data'
end
execute :chown, "-R www-data:www-data", release_path
execute :chown, "-R www-data:www-data", release_path.join('public/assets/')
execute :touch, release_path.join('tmp/restart.txt')
end
end
@@ -55,10 +60,9 @@ namespace :deploy do
after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as:
within release_path do
#execute :rake, 'cache:clear', as: 'www-data'
execute :rake, 'dedigest_assets', as: 'www-data'
end
#within release_path do
##execute :rake, 'cache:clear', as: 'www-data'
#end
end
end