Fix asset deployment and remove puma config, since it is not used anyway

This commit is contained in:
2015-05-26 16:41:21 +02:00
parent c29f89354f
commit ec03e8cf4b
3 changed files with 9 additions and 38 deletions
+8 -8
View File
@@ -32,7 +32,7 @@ set :deploy_to, '/var/www/mozo.bar'
# set :linked_files, %w{config/database.yml}
# Default value for linked_dirs is []
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system public/assets}
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
@@ -112,13 +112,13 @@ namespace :deploy do
end
end
desc 'Set config/puma.rb-symlink for upstart'
task :puma_config do
on roles(:app) do
execute "ln -s #{shared_path}/puma.rb #{release_path}/config/puma.rb"
end
end
after :finishing, :puma_config
#desc 'Set config/puma.rb-symlink for upstart'
#task :puma_config do
#on roles(:app) do
#execute "ln -sf #{shared_path}/puma.rb #{release_path}/config/puma.rb"
#end
#end
#after :finishing, :puma_config
after :publishing, :restart do
#deploy.update_remote_cache