Permalink
Browse files

paths enhanced

  • Loading branch information...
1 parent 943d325 commit 138418298ddc68a9c402f1bf68fccf5b9fc09190 @orenomba committed Aug 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 config/unicorn.rb
View
@@ -1,4 +1,4 @@
-RAILS_ROOT = Dir.pwd
+RAILS_ROOT = File.expand_path "../../", __FILE__
# Sample verbose configuration file for Unicorn (not Rack)
#
@@ -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,

0 comments on commit 1384182

Please sign in to comment.