Skip to content

Instantly share code, notes, and snippets.

@craigw
Created July 20, 2009 19:37
Show Gist options
  • Save craigw/150807 to your computer and use it in GitHub Desktop.
Save craigw/150807 to your computer and use it in GitHub Desktop.
#!/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