Deploy file update
This commit is contained in:
parent
e0346dca01
commit
dee8533df9
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue