page body fixes

This commit is contained in:
2015-10-04 15:00:47 +02:00
parent db526f7b9b
commit cc785c4d73
6 changed files with 15 additions and 13 deletions
+5 -5
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', '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