Skip to content

Instantly share code, notes, and snippets.

@fukata
Created October 6, 2012 17:33
Show Gist options
  • Save fukata/3845542 to your computer and use it in GitHub Desktop.
Save fukata/3845542 to your computer and use it in GitHub Desktop.
Gitorious rbenv + passenger(standalone) + supervisord
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
[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
#!/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