Created
December 12, 2012 16:56
-
-
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).
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 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