diff --git a/bin/dev b/bin/dev index eda330c..78c64d4 100755 --- a/bin/dev +++ b/bin/dev @@ -1,11 +1,13 @@ #!/usr/bin/env sh -if gem list --no-installed --exact --silent foreman; then - echo "Installing foreman..." - gem install foreman -fi - -# Default to port 3000 if not specified export PORT="${PORT:-3000}" -exec foreman start -f Procfile.dev "$@" +if command -v overmind > /dev/null 2>&1; then + exec overmind start -f Procfile.dev "$@" +else + if gem list --no-installed --exact --silent foreman; then + echo "Installing foreman..." + gem install foreman + fi + exec foreman start -f Procfile.dev "$@" +fi