travis-api/script/server
Konstantin Haase 6606af4b43 start working on post_message auth flow
Conflicts:
	Gemfile.lock
2012-09-18 00:04:50 +02:00

9 lines
279 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")/.."
[ $PORT ] || PORT=3000
[ $RACK_ENV ] || RACK_ENV=development
cmd="ruby -I lib -S bundle exec ruby -I lib -S thin start -p $PORT -e $RACK_ENV --threaded"
[[ $RACK_ENV == "development" ]] && exec rerun "$cmd -a 127.0.0.1"
exec $cmd