-
Notifications
You must be signed in to change notification settings - Fork 24
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
Load correct .env on --chdir #16
Comments
any luck on this @runemadsen ? Having the same issue myself |
No, I didn't have time to look at it unfortunately. |
I think you have a couple of options, if you have no conflicting variables, you can load multiple .env files when you start forman
Otherwise, someone could take a look at adding in a dependency on something like dotenv so that subcontractor looks for a .env file after the chdir. |
I have 2 rails server processes that I'm trying to run simultaneously(one is a 'fake' service layer for the other to interact with). |
When you're using --chdir you often want to load the .env file in the chdir directory, not the directory foreman is run from.
I might take a stab at this.
The text was updated successfully, but these errors were encountered: