This commit is contained in:
2015-10-04 13:31:46 +02:00
parent 91110ec56d
commit db526f7b9b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/sys
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
set :default_env, {'DEPLOY' => 'yes'}
set :default_env, {'DEPLOY' => 'yes', 'RAILS_ENV' => 'production'}
set :puma_threads, [4, 16]
set :puma_workers, 2
@@ -105,8 +105,8 @@ namespace :deploy do
#end
#end
rsync_host = host
#run_locally { execute "rsync -av --delete ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" }
run_locally { execute "rsync -av ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" }
run_locally { execute "rsync -av --delete ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" }
#run_locally { execute "rsync -av ./public/assets/ #{fetch(:user)}@#{rsync_host}:#{shared_path}/public/assets/" }
execute :chown, "-R www-data:www-data", shared_path.join('public/assets/')
#run_locally { execute 'rm -rf public/assets' }