fix: respect pre-existing .env files when preparing the herokuish buildenv

Closes #4894
This commit is contained in:
Jose Diaz-Gonzalez committed 2022-01-18 02:21:12 -05:00
1 parent 3c68114ad3
commit 07f2ef1411
4 files changed
+32 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
DOTENV_KEY=some_value
+4 -1
View File
@@ -5,7 +5,10 @@ import os
def main():
print("GLOBAL_SECRET: {0}".format(os.getenv('GLOBAL_SECRET')))
print("SECRET_KEY: {0}".format(os.getenv('SECRET_KEY')))
with open("/app/.env", "r") as f:
for line in f.readlines():
if "DOTENV_KEY" in line:
print(line)
if __name__ == '__main__':
main()