-
Notifications
You must be signed in to change notification settings - Fork 72
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
Specify Working Directory for .env file #43
Comments
For anyone that may want to know how to solve it currently. The docker commands are run from /home/vagrant. I just opted to copy the .env file with an inline config.vm.provision "shell" |
The @zogot: Did you want to take a stab at adding the feature? |
@zogot: I took another look at adding this but then discovered Vagrant already has a feature for changing the working directory. If you set the VAGRANT_CWD environment variable it will change the working directory to there. Ref: Let me know if that solves it for you. |
I've gone ahead and used this great gist here: Building my hash based on where the .env file is located in my vagrant host & then just passing it as described in: #33 |
@paul-corda that gist didn't worked for me. Is there another way to use the UPDATE I changed it to:
which seems to work. |
@marceloverdijk Seems to be an issue with how it handles commented lines? |
Since docker-compose allows specifying a .env file to be loaded, and its dependent on the running location of docker-compose, being able to specify where we are running docker-compose will help a lot.
https://docs.docker.com/compose/env-file/
The text was updated successfully, but these errors were encountered: