Created
June 30, 2023 12:47
-
-
Save danielnolan/fe73b69e78f15a074e61a07a7ebeae80 to your computer and use it in GitHub Desktop.
Use overmind vs foreman if available in rails bin/dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if command -v overmind &> /dev/null | |
then | |
overmind start -f Procfile.dev "$@" | |
exit $? | |
fi | |
if ! foreman version &> /dev/null | |
then | |
echo "Installing foreman..." | |
gem install foreman | |
fi | |
foreman start -f Procfile.dev "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment