File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / spawn-fcgi / doc / run-rails
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 15:24:39 2013 UTC (10 years, 8 months ago) by misho
Branches: spawn-fcgi, MAIN
CVS tags: v1_6_3, HEAD
1.6.3

#!/bin/sh
# Use this as a ./run script with daemontools or runit
# You should replace xxx with the user you want rails to run as (and www-data with the user lighty runs as)
# /path-to-rails should be replaced with the correct path too :)

exec 2>&1
RAILS_ENV="production" \
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>