runrails
Using runit for Rails hosting
Code (scripts etc.):
- tarball – http://zhesto.railshosting.org/files/runrails-1.0.tgz
- subversion: https://opensvn.csie.org/zh/runrails/
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}