Deploy file update

This commit is contained in:
yafeilee 2016-04-24 15:58:24 +08:00
parent e0346dca01
commit dee8533df9
3 changed files with 3 additions and 9 deletions

View File

@ -52,5 +52,7 @@ task :deploy => :environment do
invoke :'puma:restart' invoke :'puma:restart'
invoke :'sidekiq:restart' invoke :'sidekiq:restart'
end end
invoke :'deploy:cleanup'
end end
end end

View File

@ -20,7 +20,7 @@ WBlog::Application.configure do
# config.action_dispatch.rack_cache = true # config.action_dispatch.rack_cache = true
# Disable Rails's static asset server (Apache or nginx will already do this). # Disable Rails's static asset server (Apache or nginx will already do this).
config.serve_static_files = false config.public_file_server.enabled = false
# Compress JavaScripts and CSS. # Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier config.assets.js_compressor = :uglifier

View File

@ -1,8 +0,0 @@
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
threads threads_count, threads_count
port ENV.fetch("PORT") { 3000 }
environment ENV.fetch("RAILS_ENV") { "development" }
plugin :tmp_restart