start.sh
316 Bytes
#!/bin/bash
set -e
export ERRBIT_UNICORN_BIND_ADDRESS=127.0.0.1
export ERRBIT_UNICORN_PID=errbit_unicorn.pid
export ERRBIT_UNICORN_PORT=4040
export ERRBIT_UNICORN_WORKER_PROCESSES=1
if [ -f config/envvars ]; then
source config/envvars
fi
ruby -S bundle exec unicorn --config-file config/unicorn.rb --daemonize