Guest User

Untitled

a guest
Jun 18th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. # set path to app that will be used to configure unicorn, note the trailing slash in this example
  2. @dir = "/path/to/app/"
  3.  
  4. worker_processes 2
  5. working_directory @dir
  6.  
  7. preload_app true
  8.  
  9. timeout 30
  10.  
  11. # Specify path to socket unicorn listens to, we will use this in our nginx.conf later
  12. listen "#{@dir}tmp/sockets/unicorn.sock", :backlog => 64
  13.  
  14. # Set process id path
  15. pid "#{@dir}tmp/pids/unicorn.pid"
  16.  
  17. # Set log file paths
  18. stderr_path "#{@dir}log/unicorn.stderr.log"
  19. stdout_path "#{@dir}log/unicorn.stdout.log"
Add Comment
Please, Sign In to add comment