DEV: Apply syntax_tree formatting to config/*

This commit is contained in:
David Taylor
2023-01-07 11:59:28 +00:00
parent 436b3b392b
commit 7c77cc6a58
47 changed files with 1627 additions and 1091 deletions

View File

@@ -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