Files
openproject/bin/dev
T
Aaron Contreras 42172a15df Replace foreman with overmind
Updates bin/dev and documentation to incentivize the use of
overmind over foreman.
2023-05-25 07:29:31 +02:00

18 lines
362 B
Bash
Executable File

#!/usr/bin/env bash
function fallback_to_foreman() {
echo 'Overmind not installed. Falling back to foreman...'
if ! command -v foreman &> /dev/null; then
echo 'Installing foreman...'
gem install foreman
fi
foreman start -f Procfile.dev
}
if command -v overmind &> /dev/null; then
overmind start -f Procfile.dev
else
fallback_to_foreman
fi