travis-api/script/server
Piotr Sarnacki 8c5529a50a Revert "go back to unicorn for now"
Server is not the bottleneck and new relic does not work on unicorn.

This reverts commit 4a88b2d8c6.

Conflicts:

	Gemfile.lock
2013-01-23 21:05:36 +01: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