Skip to content

Instantly share code, notes, and snippets.

@danielnolan
Created June 30, 2023 12:47
Show Gist options
  • Save danielnolan/fe73b69e78f15a074e61a07a7ebeae80 to your computer and use it in GitHub Desktop.
Save danielnolan/fe73b69e78f15a074e61a07a7ebeae80 to your computer and use it in GitHub Desktop.
Use overmind vs foreman if available in rails bin/dev
#!/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