Commit 85e784cc1d3d44cdb553bc3be77a3522e6ae4603

Authored by Lyle Entwistle
1 parent 6e1ee1fe

Fixed puma.rb environment setting, no need to specify 'production' in daemon options now

config/puma.rb.example
1 1 #!/usr/bin/env puma
2 2  
3 3 # Start Puma with next command:
4   -# RAILS_ENV=production bundle exec puma -e production -C ./config/puma.rb
  4 +# RAILS_ENV=production bundle exec puma -C ./config/puma.rb
5 5  
6 6 # uncomment and customize to run in non-root path
7 7 # note that config/gitlab.yml web path should also be changed
... ... @@ -19,7 +19,7 @@ directory application_path
19 19 #
20 20 # The default is “development”.
21 21 #
22   -environment = :production
  22 +environment 'production'
23 23  
24 24 # Daemonize the server into the background. Highly suggest that
25 25 # this be combined with “pidfile” and “stdout_redirect”.
... ...
lib/support/init.d/gitlab
... ... @@ -17,7 +17,7 @@
17 17  
18 18 APP_ROOT="/home/git/gitlab"
19 19 APP_USER="git"
20   -DAEMON_OPTS="-C $APP_ROOT/config/puma.rb -e production"
  20 +DAEMON_OPTS="-C $APP_ROOT/config/puma.rb"
21 21 PID_PATH="$APP_ROOT/tmp/pids"
22 22 WEB_SERVER_PID="$PID_PATH/puma.pid"
23 23 SIDEKIQ_PID="$PID_PATH/sidekiq.pid"
... ...