Skip to content

Instantly share code, notes, and snippets.

@ijin
Created March 11, 2013 08:59
Show Gist options
  • Save ijin/5132906 to your computer and use it in GitHub Desktop.
Save ijin/5132906 to your computer and use it in GitHub Desktop.
executes passenger commands through rbenv
#!/bin/bash
export PATH=/usr/local/rbenv/shims:/usr/local/rbenv/bin:$PATH
# Passenger needs to find httpd for passenger-memory-stats
export HTTPD=/opt/nginx/sbin/nginx
source /usr/local/rbenv/completions/rbenv.bash
rbenv rehash
COMMAND_END=${1:-status}
passenger-${COMMAND_END} $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment