Skip to content

Instantly share code, notes, and snippets.

@dominic
Created July 23, 2013 17:34
Show Gist options
  • Save dominic/6064367 to your computer and use it in GitHub Desktop.
Save dominic/6064367 to your computer and use it in GitHub Desktop.
bin/start script for local development with ryandotsmith/nginx-buildpack
# 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