-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Dotenv in sync #287
Comments
As far as I can see it should not be limited in any way. In fact I tried to use a <adapters>
<adapter type="dotenv" name="dotenv">
<option name="file" value=".env"/>
</adapter>
</adapters>
...
<sync type="amazons3">
<option name="key" value="adapter:dotenv:TEST" /> Simulate output shows something like this.
So the .env adapter would fail if the .env file would not be readable. Which version of |
I did some more tests and always had the same result. Variables from env are empty in sync, even using the same vars that work 3 lines above in the source block resolve empty in sync. When I load the same .env in PHP and dump it all vars show correctly. I installed phpbu via composer and use version 6.0.14, vlucas/phpdotenv is v5.3.0 |
This seems to be related to |
There is a problem with I changed the implementation to Until then you should be able to use |
Since version 5 the usage of 'getenv' is not working anymore. This fixes issue #287
I am having trouble to use env vars in the sync configuration. When deploying backups with a config like the following it works for the local backup but all env vars in the sync section return empty:
I checked the output in the S3 sync files and indeed all config vars are empty so I am getting errors like:
The env is correctly set and loaded tho. Are environment variables limited or should it work anywhere in the configuration including the sync sections?
The text was updated successfully, but these errors were encountered: