Created
December 29, 2010 19:39
-
-
Save etagwerker/758954 to your computer and use it in GitHub Desktop.
default unicorn configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete | |
# documentation. | |
worker_processes 2 | |
# Help ensure your application will always spawn in the symlinked | |
# "current" directory that Capistrano sets up. | |
working_directory "/home/deployer/myapp.com/current" | |
# listen on both a Unix domain socket and a TCP port, | |
# we use a shorter backlog for quicker failover when busy | |
listen "/tmp/myapp.com.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 | |
user 'deployer', 'staff' | |
shared_path = "/home/deployer/myapp.com/shared" | |
pid "#{shared_path}/pids/unicorn.pid" | |
stderr_path "#{shared_path}/log/unicorn.stderr.log" | |
stdout_path "#{shared_path}/log/unicorn.stdout.log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment