Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Environment specific Behavior

ddollar edited this page · 1 revision

If you'd like to control a command based on environment (e.g. only run certain commands in development or run different commands in development/production) you can use a wrapper script:

#!/bin/bash

if [ "$RACK_ENV" == "development" ]; then
  exec bundle exec shotgun -p $PORT
else
  exec bundle exec thin start -p $PORT -e $RACK_ENV
fi
Something went wrong with that request. Please try again.