Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2012 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4269483 to your computer and use it in GitHub Desktop.
Save anonymous/4269483 to your computer and use it in GitHub Desktop.
A wrapper script for passenger utilities under rbenv, 'catalyst' is the name of my app, and the unix account rbenv is installed in (with homedir at /opt/catalyst).
#!/bin/bash
export PATH=/home/catalyst/.rbenv/shims:/home/catalyst/.rbenv/bin:$PATH
# Passenger needs to find httpd for passenger-memory-stats
export HTTPD=/usr/sbin/httpd
source /home/catalyst/.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