OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/packaging/scripts/web

14 lines
329 B

#!/bin/bash -e
HOST="${HOST:=127.0.0.1}"
PORT="${PORT:=8080}"
RAILS_ENV="${RAILS_ENV:="development"}"
USE_PUMA="${USE_PUMA:="false"}"
if [ "$USE_PUMA" = "true" ]; then
bundle exec rails server -u puma -b $HOST -p $PORT
else
bundle exec unicorn --config-file config/unicorn.rb --host $HOST --port $PORT --env $RAILS_ENV
fi