diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-23 15:29:59 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-23 15:29:59 -0600 |
| commit | b85116979a66a3705d4b5cd1bd61d2ddf4f28ccc (patch) | |
| tree | 90fac1db58ad280023d2aea76b654f8a690b0aaf | |
| parent | 960b65c35d22d3f2fb64d462665ac462282e8622 (diff) | |
move unicorn socket to shared/sockets dir
| -rw-r--r-- | config/deploy.rb | 1 | ||||
| -rw-r--r-- | config/unicorn.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 5a066f8..2606b9b 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,4 +1,5 @@ require "bundler/capistrano" +require "rvm/capistrano" load "config/recipes/base" load "config/recipes/nginx" diff --git a/config/unicorn.rb b/config/unicorn.rb index b1eebeb..77ae307 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1,4 +1,5 @@ root = "/home/demo/apps/parley/current" +parent = "/home/demo/apps/parley" # Sample verbose configuration file for Unicorn (not Rack) # @@ -27,7 +28,7 @@ working_directory "/home/demo/apps/parley/current" # available in 0.94.0+ # listen on both a Unix domain socket and a TCP port, # we use a shorter backlog for quicker failover when busy -listen "#{root}/tmp/sockets/unicorn.sock", :backlog => 64 +listen "#{parent}/shared/sockets/unicorn.sock", :backlog => 64 listen 8080, :tcp_nopush => true # nuke workers after 30 seconds instead of 60 seconds (the default) |
