mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
42172a15df
Updates bin/dev and documentation to incentivize the use of overmind over foreman.
18 lines
362 B
Bash
Executable File
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
|