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
Idea: Valet environment variables #146
Comments
This could be beneficial. I currently just edit my fastcgi / 127.0.0.1:9000 php {
index server.php
+ env VARNAME value
} ... but of course that requires a manual edit, and remembering the syntax, and remembering the right line to put it on. |
I think it could be cool. For each laravel site, I open up the dotenv and setup:
Since these are shared across all of my valet sites I think it makes sense. |
I too, used to edit the Caddyfile, but since Valet migrated to nginx, I lost the ability to do it. |
I have been using valet for a while and love it! I think it would pretty damn cool for Valet to automatically load any environment variables contained in a .env file into the virtual host declaration within caddy for the site. It could even be an optional command such as
valet load:env
or something like that. Does anyone else think this is a feature worthy of being worked on? If so, I might take it up and do a PRThe text was updated successfully, but these errors were encountered: