travis-api/script/server
Piotr Sarnacki 95b240e211 Revert "switch to unicorn"
The switch was done in order to see if puma may be related to 503
issues, but since it didn't change a thing, we may bring it back

This reverts commit 74612ed067.
2013-04-16 20:03:47 +02:00

9 lines
299 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 config.ru -p $PORT -e $RACK_ENV --threads 0:16"
[[ $RACK_ENV == "development" ]] && exec rerun "$cmd -b tcp://127.0.0.1:$PORT"
exec $cmd