Skip to content

Instantly share code, notes, and snippets.

@jacksonpires
Created June 2, 2019 18:00
Show Gist options
  • Save jacksonpires/6f3de4886e64bb3ef5202b330d304947 to your computer and use it in GitHub Desktop.
Save jacksonpires/6f3de4886e64bb3ef5202b330d304947 to your computer and use it in GitHub Desktop.
Unicorn Configuration (config/unicorn/production.rb)
root = "/var/www/<pasta da app>/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
stdout_path "#{root}/log/unicorn.log"
worker_processes 4
timeout 30
preload_app true
listen '/tmp/<nome escolhido no nginx>.sock', backlog: 64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment