Skip to content

Instantly share code, notes, and snippets.

@vdv
vdv / unicorn.conf
Created January 30, 2012 15:23
unicorn simple config
worker_processes 1
timeout 180
# Location of stderr/stdout logs
stderr_path "/home/www/my_server/current/log/unicorn.err.log"
#stdout_path "/home/www/my_server/current/log/unicorn.out.log"
listen '/home/www/my_server/current/tmp/sockets/unicorn.socket'
pid_file = "/home/www/my_server/current/tmp/pids/unicorn.pid"
pid pid_file
@vdv
vdv / unicorn
Created January 30, 2012 15:18
unicorn init.d script with rvm on ubuntu 11.04
#!/bin/bash
### BEGIN INIT INFO
# Provides: APPLICATION
# Required-Start: $all
# Required-Stop: $network $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the APPLICATION unicorns at boot
# Description: Enable APPLICATION at boot time.
### END INIT INFO