Skip to content

Commit

Permalink
paths enhanced
Browse files Browse the repository at this point in the history
  • Loading branch information
orenomba committed Aug 11, 2012
1 parent 943d325 commit 1384182
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/unicorn.rb
@@ -1,4 +1,4 @@
RAILS_ROOT = Dir.pwd
RAILS_ROOT = File.expand_path "../../", __FILE__

# Sample verbose configuration file for Unicorn (not Rack)
#
Expand Down Expand Up @@ -27,14 +27,14 @@

# listen on both a Unix domain socket and a TCP port,
# we use a shorter backlog for quicker failover when busy
listen File.join(RAILS_ROOT, "tmp", "sockets", "unicorn.sock"), :backlog => 64
listen File.join(RAILS_ROOT, "tmp/sockets/unicorn.sock"), :backlog => 64
listen 8080, :tcp_nopush => true

# nuke workers after 30 seconds instead of 60 seconds (the default)
timeout 30

# feel free to point this anywhere accessible on the filesystem
pid File.join(RAILS_ROOT, "tmp", "pids", "unicorn.pid")
pid File.join(RAILS_ROOT, "tmp/pids/unicorn.pid")

# By default, the Unicorn logger will write to stderr.
# Additionally, ome applications/frameworks log to stderr or stdout,
Expand Down

0 comments on commit 1384182

Please sign in to comment.