Skip to content

Commit

Permalink
Updated puma configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
pellaea committed Feb 25, 2024
1 parent 4364ccd commit 0a14ebe
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
# preload_app!
prune_bundler

directory APP_PATH
rackup DefaultRackup
rackup DefaultRackup if defined?(DefaultRackup)
port ENV["PORT"] || 3000
environment ENV["RACK_ENV"] || "production"
redirect_stderr "#{APP_PATH}/log/puma.stderr.log"
redirect_stdout "#{APP_PATH}/log/puma.stdout.log"
bind "#{APP_PATH}/tmp/sockets/puma.sock"
pidfile "#{APP_PATH}/tmp/pids/puma.pid"
environment ENV["RAILS_ENV"] || "production"

# directory "/var/web/mo"
# redirect_stderr "/var/web/mo/log/puma.stderr.log"
# redirect_stdout "/var/web/mo/log/puma.stdout.log"
# bind "/var/web/mo/tmp/sockets/puma.sock"
# pidfile "/var/web/mo/tmp/pids/puma.pid"

# on_worker_boot do
# ActiveRecord::Base.establish_connection
Expand Down

0 comments on commit 0a14ebe

Please sign in to comment.