overmind icon indicating copy to clipboard operation
overmind copied to clipboard

Commands work from `run` but not `start`

Open matt17r opened this issue 4 years ago • 2 comments

I have a simple Procfile.dev:

rails: rails server
webpack: bin/webpack-dev-server

When I try to launch it with overmind start -f Procfile.dev I get an error from the rails session about an outdated version of bundler (because it's using my system ruby instead of the version installed with asdf-vm).

However, if I run overmind run rails server it starts up fine (as does tmux new rails server).

What is the difference between those two commands? How do I troubleshoot what's going on?

If it makes a difference my environment is:

  • macOS Catalina 10.15.3
  • fish shell 3.0.2
  • asdf version manager 0.7.6
  • Overmind 2.1.0
  • tmux 3.0a

I saw in the README it's probably a path issue but I'm not sure how to fix it when it's broken with start but working with run

matt17r avatar Mar 25 '20 11:03 matt17r

Hi! I had similar issue and was able to fix it editing procfile. In my case I had to change:

anycable: bundle exec anycable --rpc_host=[::]:50051

to

anycable: bundle exec anycable --rpc_host="[::]:50051"

Have you tried to run bin/webpack-dev-server overmind run?

arrowcircle avatar Apr 14 '20 11:04 arrowcircle

Hey!

overmind run just starts provided command with env variables set from .overmind.env and friends. No fancy stuff like tmux etc.

According to the issue, try to look here: https://asdf-vm.com/#/core-manage-asdf-vm?id=having-issues I installed asdf and configured it as described in the manual, and everything works as expected.

As a debug measure you can try to add something like env: env; sleep 9999 to your Procfile and compare it with the output of env launched directly from your shell.

DarthSim avatar Jul 14 '20 15:07 DarthSim