From dee8533df94cf4a6258936d2f55f79309aa48d08 Mon Sep 17 00:00:00 2001 From: yafeilee Date: Sun, 24 Apr 2016 15:58:24 +0800 Subject: [PATCH] Deploy file update --- config/deploy.rb | 2 ++ config/environments/production.rb | 2 +- config/puma.rb | 8 -------- 3 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 config/puma.rb diff --git a/config/deploy.rb b/config/deploy.rb index a04f3d4..5706a71 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -52,5 +52,7 @@ task :deploy => :environment do invoke :'puma:restart' invoke :'sidekiq:restart' end + + invoke :'deploy:cleanup' end end diff --git a/config/environments/production.rb b/config/environments/production.rb index d5627a4..979f3ee 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -20,7 +20,7 @@ WBlog::Application.configure do # config.action_dispatch.rack_cache = true # 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. config.assets.js_compressor = :uglifier diff --git a/config/puma.rb b/config/puma.rb deleted file mode 100644 index 604e784..0000000 --- a/config/puma.rb +++ /dev/null @@ -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