Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use overmind if available #1122

Open
MatheusRich opened this issue Jan 23, 2023 · 2 comments
Open

Use overmind if available #1122

MatheusRich opened this issue Jan 23, 2023 · 2 comments
Labels
Enhancement Features we're considering adding

Comments

@MatheusRich
Copy link

Use overmind instead of foreman, if available

Overmind is a process manager (like foreman) for Procfile-based
applications. The advantage is that it allows to use debuggers like
pry or binding.irb.

(Maybe this should be a PR against Rails?)

@stevepolitodesign
Copy link
Contributor

Use overmind instead of foreman, if available

Meaning, we'd check to see if Overmind is available on the user's system?

Currently, Rails generates ./bin/dev for applications using jsbundling-rails.

We could probably modify that file to check for the existence of Overmind.

@MatheusRich
Copy link
Author

@stevepolitodesign yes! I forgot to attach the code for it:

#!/usr/bin/env sh

# Magic happens here
if command -v overmind &> /dev/null
then
  overmind start -f Procfile.dev "$@"
  exit $?
fi

if ! gem list foreman -i --silent; then
  echo "Installing foreman..."
  gem install foreman
fi

exec foreman start -f Procfile.dev "$@"

@stevepolitodesign stevepolitodesign added the Enhancement Features we're considering adding label Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Features we're considering adding
Projects
None yet
Development

No branches or pull requests

2 participants