Add rubocop to our build. (#5004)

This commit is contained in:
Guo Xiang Tan
2017-07-28 10:20:09 +09:00
committed by GitHub
parent ff4e295c4f
commit 5012d46cbd
871 changed files with 5480 additions and 6056 deletions

View File

@@ -1,4 +1,4 @@
if ENV['RAILS_ENV']=='production'
if ENV['RAILS_ENV'] == 'production'
# First, you need to change these below to your situation.
APP_ROOT = '/home/discourse/discourse'
@@ -6,11 +6,11 @@ if ENV['RAILS_ENV']=='production'
# Second, you can choose how many threads that you are going to run at same time.
workers "#{num_workers}"
threads 8,32
threads 8, 32
# Unless you know what you are changing, do not change them.
bind "unix://#{APP_ROOT}/tmp/sockets/puma.sock"
stdout_redirect "#{APP_ROOT}/log/puma.log","#{APP_ROOT}/log/puma.err.log"
bind "unix://#{APP_ROOT}/tmp/sockets/puma.sock"
stdout_redirect "#{APP_ROOT}/log/puma.log", "#{APP_ROOT}/log/puma.err.log"
pidfile "#{APP_ROOT}/tmp/pids/puma.pid"
state_path "#{APP_ROOT}/tmp/pids/puma.state"
daemonize true