summaryrefslogtreecommitdiff
path: root/bin/server
blob: 28104eddeb31313ab1d89dcca7550dd6e14bc06b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# bin/server: Launch the application and any extra required processes locally.

set -e
cd "$(dirname "$0")/.."

PORT=${PORT:=4000}
PROCFILE=Procfile

export PORT

test -z "$RACK_ENV" && RACK_ENV='development'
bin/update

gem install foreman
foreman start -e /dev/null -f $PROCFILE