travis-web/script/server
2013-02-22 17:09:04 +01:00

9 lines
261 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")/.."
[ $PORT ] || PORT=3001
[ $RACK_ENV ] || RACK_ENV=development
cmd="ruby -I lib -S bundle exec ruby -I lib -S puma -p $PORT"
# [[ $RACK_ENV == "development" ]] && exec rerun "$cmd" -p '{lib,public}/**/*'
exec $cmd