page body fixes
This commit is contained in:
+5
-5
@@ -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', 'RAILS_ENV' => 'production'}
|
||||
#set :default_env, {'DEPLOY' => 'yes'}
|
||||
|
||||
set :puma_threads, [4, 16]
|
||||
set :puma_workers, 2
|
||||
@@ -92,10 +92,10 @@ namespace :deploy do
|
||||
task :precompile do
|
||||
on roles(fetch(:assets_roles)) do
|
||||
run_locally do
|
||||
with rails_env: fetch(:rails_env) do
|
||||
execute 'bin/rake assets:precompile'
|
||||
execute 'bin/rake assets:dedigest'
|
||||
execute 'bin/rake assets:gzip'
|
||||
with rails_env: fetch(:stage) do
|
||||
execute "RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:precompile"
|
||||
execute "RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:dedigest"
|
||||
execute "RAILS_ENV=#{fetch(:stage)} DEPLOY=yes bin/rake assets:gzip"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user