DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.9k stars 83 forks source link

Commands work from `run` but not `start` #74

Open matt17r opened 4 years ago

matt17r commented 4 years ago

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:

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

arrowcircle commented 4 years ago

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?

DarthSim commented 4 years ago

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.