Can you change environment variables with putenv() in the Craft Cloud serverless app container? #114
Unanswered
jamesmacwhite
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
That said, without knowing more about your use-case, it feels a bit odd to me… |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a potential use case for using an environment variable that triggers specific logic and would be conditional based on a specific scenario that would go beyond the current deployment model, where you need to amend the environment variable in Craft Console on an environment and do a manual deployment.
If a plugin/module called putenv() in its init() class which is in the applicaiton bootstrap would the environment variable change work under serverless in the container image, without changing the main environment variables under Craft Console?
Beta Was this translation helpful? Give feedback.
All reactions