Created
October 6, 2012 17:33
-
-
Save fukata/3845542 to your computer and use it in GitHub Desktop.
Gitorious rbenv + passenger(standalone) + supervisord
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH=/home/git/.rbenv/bin:/home/git/.rbenv/shims:/var/www/gitorious/script:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:gitorious] | |
command=/home/git/start-gitorious | |
directory=/home/git | |
user=git | |
startsecs=10 | |
autostart=true | |
autorestar=true | |
logfile=/var/log/supervisor/gitorious.log | |
logfile_maxbytes=1MB | |
logfile_backups=10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export HOME=/home/git | |
RBENV_ROOT=$HOME/.rbenv | |
export PATH="$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH" | |
cd /var/www/gitorious && RAILS_ENV=production passenger start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment