richardfrankza

richardfrankza

Planned

On services like Netlify you can add environment variables in a key/value format that are then available to the application at build/runtime. Could this be implemented so if the site does not support e.g. phpdotenv (.env) we could still use environment variables and getenv() in our application.

The interface would then generate something like this effectively in the nginx config

location / { ... fastcgi_param APPLICATION_ENV production; fastcgi_param APPLICATION_CONFIG user; ... }

Joel Szwarga

Joel Szwarga

·
·

This would be very useful for me. The step of adding phpdotenv to every site I build get tiresome.

no votes yet

Add environment variables per site

6 total votes
  • Dennis moved item to board Planned

    2 years ago
  • Dennis moved item to board Planned

    2 years ago
  • richardfrankza moved item to project Site Level Requests

    2 years ago
  • richardfrankza created the item

    2 years ago