Skip to content

Instantly share code, notes, and snippets.

@pelargir
Created December 13, 2012 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pelargir/4277379 to your computer and use it in GitHub Desktop.
Save pelargir/4277379 to your computer and use it in GitHub Desktop.
launch Rails 2 or 3 server, or foreman if this is a Heroku app
if [ -f script/server ]
then
script/server
elif [ -f .env ]
then
foreman start -p 3000
else
script/rails server
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment