Annotation of embedaddon/spawn-fcgi/doc/run-rails, revision 1.1
1.1 ! misho 1: #!/bin/sh
! 2: # Use this as a ./run script with daemontools or runit
! 3: # You should replace xxx with the user you want rails to run as (and www-data with the user lighty runs as)
! 4: # /path-to-rails should be replaced with the correct path too :)
! 5:
! 6: exec 2>&1
! 7: RAILS_ENV="production" \
! 8: exec /usr/bin/spawn-fcgi -n -s /var/run/lighttpd/rails-xxx.sock -u xxx -U www-data -- /path-to-rails/public/dispatch.fcgi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>