sign in
Home | Updates | Pages | Users | Admin | Help

runrails

Using runit for Rails hosting

Code (scripts etc.):

Usage

from the root account

* apt-get install runit
* get scripts + tar xvzf ...
* merge /usr/local/sbin/* and /etc/skel.merge/* in your system
* addrails {username}  -> will produce /home/{username} and /etc/runit/home/{username}
* cd /var/service
* ln -s /etc/runit/home/{username}  -> {username} can use runit
services start/stop from his own directory (~/runit/....)

from the {username} (non-privileged) account

lighttpd

* edit ~/Services/lighttpd/lighttpd.conf
* cd ~/runit
* ln -s ~/Services/lighttpd

lighttpd start/stop: cd runit; svdown lighttpd; svup lighttpd (svup to svdown are in ~/.bash_aliases)

Rails applications:

rails ~/Sites/{appname}

FastCGI

Adios FastCGI (post-fastcgi ways)


Powered by JunebugWiki v0.0.31 Page last edited by stoyan on December 18, 2006 05:05 PM (diff)
[readonly] Version 3 (current) «olderversions