...
This commit is contained in:
@@ -22,7 +22,7 @@ require 'capistrano/rails/assets'
|
||||
# require 'capistrano/rails/migrations'
|
||||
require 'capistrano/puma'
|
||||
require 'capistrano/puma/monit'
|
||||
require "airbrussh/capistrano"
|
||||
#require "airbrussh/capistrano"
|
||||
|
||||
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
|
||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
||||
|
||||
+3
-3
@@ -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' }
|
||||
|
||||
Reference in New Issue
Block a user