mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to config/*
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
if ENV['RAILS_ENV'] == 'production'
|
||||
|
||||
if ENV["RAILS_ENV"] == "production"
|
||||
# First, you need to change these below to your situation.
|
||||
APP_ROOT = ENV["APP_ROOT"] || '/home/discourse/discourse'
|
||||
APP_ROOT = ENV["APP_ROOT"] || "/home/discourse/discourse"
|
||||
num_workers = ENV["NUM_WEBS"].to_i > 0 ? ENV["NUM_WEBS"].to_i : 4
|
||||
|
||||
# Second, you can choose how many threads that you are going to run at same time.
|
||||
@@ -16,5 +15,4 @@ if ENV['RAILS_ENV'] == 'production'
|
||||
pidfile "#{APP_ROOT}/tmp/pids/puma.pid"
|
||||
state_path "#{APP_ROOT}/tmp/pids/puma.state"
|
||||
preload_app!
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user