9hills
2012-09-09 01:10:55 +08:00
试试rvm wrapper:
比如我想让gollum通过supervisord开机启动,那么首先
rvm wrapper 1.9.3 startup gollum
然后再supervisord的配置中加入
[program:gollum]
;; need: rvm wrapper 1.9.3 startup gollum
command=/home/cynic/.rvm/bin/startup_gollum
directory=/home/cynic/Projects/wiki
user=cynic
environment=PATH=/home/cynic/.virtualenvs/python27/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
env是因为gollum要用virtualenv中的python2.7,你这个可以不加