Created
July 20, 2009 19:37
-
-
Save craigw/150807 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
exec 2>&1 | |
echo "Starting..." | |
ENVIRONMENT=production | |
PORT=8000 | |
IP=0.0.0.0 | |
CHDIR=/var/www/www.application.com | |
USER=application_user | |
exec softlimit -m 134217728 \ | |
setuidgid $USER \ | |
env HOME=$CHDIR \ | |
mongrel_rails start -e $ENVIRONMENT -p $PORT -a $IP -c $CHDIR 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment