Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Change Puma socket location
Browse files Browse the repository at this point in the history
Signed-off-by: David Celis <me@davidcel.is>
  • Loading branch information
davidcelis committed Feb 3, 2013
1 parent d3cda6e commit 74ab19b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/deploy.rb
Expand Up @@ -27,7 +27,7 @@
namespace :deploy do
desc 'Start puma server'
task :start, :roles => :app, :except => { :no_release => true } do
run "cd #{current_path} && NEWRELIC_DISPATCHER=puma bundle exec puma -C config/puma.rb --control unix:///tmp/pumactl.sock >> #{shared_path}/log/puma-production.log 2>&1 &", :pty => false
run "cd #{current_path} && NEWRELIC_DISPATCHER=puma bundle exec puma -C config/puma.rb --control unix://#{shared_path}/pumactl.sock >> #{shared_path}/log/puma-production.log 2>&1 &", :pty => false
end

desc 'Stop puma server'
Expand Down
2 changes: 1 addition & 1 deletion config/nginx.conf
@@ -1,5 +1,5 @@
upstream puma {
server unix:/tmp/puma.sock fail_timeout=0;
server unix:/home/david/apps/goodbre.ws/shared/sockets/puma.sock fail_timeout=0;
}

server {
Expand Down
9 changes: 5 additions & 4 deletions config/puma.rb
@@ -1,12 +1,13 @@
# Define your root directory
root = "/home/david/apps/goodbre.ws"
root = '/home/david/apps/goodbre.ws'
shared = "#{root}/shared"

# Bind to a UNIX socket
bind 'unix:///tmp/puma.sock'
bind "unix://#{shared}/sockets/puma.sock"

environment 'production'
pidfile "#{root}/shared/pids/puma.pid"
state_path "#{root}/shared/pids/puma.state"
pidfile "#{shared}/pids/puma.pid"
state_path "#{shared}/pids/puma.state"

# 0-16 threads for production environment
threads 0, 16

0 comments on commit 74ab19b

Please sign in to comment.