Question

env variables doesn't get updated

I’ve had this issue several times. I’ve reached out to support before too. The env variables doesnt get updated even after clicking force rebuild. After the last time I spoke with support, they couldn’t find a solution. I had to recreate another app in order to update my env. I’m facing same problem again, I’ll probably create another app. I am just leaving this message as I don’t think there’s much of a solution at this moment.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
October 11, 2023

Hi there,

I believe that there was a reported issue with the App Platfrom just today. Are you still seeing the problem after a force rebuild?

If so, I could suggest to make sure that you don’t have your env variables defined under both your App level env variables andon the component level as well.

That could explain the odd behaviour where you might change the value of your environment variable under the the App level environment variables, but then the same variable under the component env variables would take presedence and you will not see the new value.

Unlike runtime and build time variables which are resource-specific, app-level variables can be accessed by all resources in your app:

https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/#define-app-level-environment-variables

Let me know how it goes!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel