Production fixes
This commit is contained in:
+8
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user