Commit 81e6029406234267982d3516087133e215952e5e

Authored by Dmitriy Zaporozhets
2 parents 419d1eac 85e784cc

Merge pull request #3897 from LyleE/puma-config-environment-fix

Fixed puma.rb environment setting
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"
... ...