Created
July 23, 2013 17:34
-
-
Save dominic/6064367 to your computer and use it in GitHub Desktop.
bin/start script for local development with ryandotsmith/nginx-buildpack
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
# Server command | |
COMMAND='bundle exec unicorn -p $PORT -c ./config/unicorn.rb' | |
if [[ $NGINX == "true" ]] | |
then | |
# Start command as argument to `start-nginx` script | |
bin/start-nginx $COMMAND | |
else | |
# Start command without nginx (development and debugging) | |
$COMMAND | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment