travis-api/script/server
Piotr Sarnacki 97958a4ce4 Try nginx
2013-09-02 09:52:26 +02:00

9 lines
277 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 puma -C config/puma-config.rb"
[[ $RACK_ENV == "development" ]] && exec rerun "$cmd -b tcp://127.0.0.1:$PORT"
exec $cmd