mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +00:00
Update update.py
This commit is contained in:
parent
d45c8f2cea
commit
1a3350722f
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ try:
|
||||||
try:
|
try:
|
||||||
res = requests.get(ENV_URL)
|
res = requests.get(ENV_URL)
|
||||||
if res.status_code == 200:
|
if res.status_code == 200:
|
||||||
with open("config.env", "wb+") as f:
|
with open(".env", "wb+") as f:
|
||||||
f.write(res.content)
|
f.write(res.content)
|
||||||
else:
|
else:
|
||||||
LOGGER.error(f"config.env err: {res.status_code}")
|
LOGGER.error(f"config.env err: {res.status_code}")
|
||||||
|
|
@ -38,7 +38,7 @@ try:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
dotenv.load_dotenv("config.env", override=True)
|
dotenv.load_dotenv(".env", override=True)
|
||||||
|
|
||||||
UPSTREAM_REPO_URL = os.environ.get("UPSTREAM_REPO_URL")
|
UPSTREAM_REPO_URL = os.environ.get("UPSTREAM_REPO_URL")
|
||||||
UPSTREAM_REPO_BRANCH = os.environ.get("UPSTREAM_REPO_BRANCH")
|
UPSTREAM_REPO_BRANCH = os.environ.get("UPSTREAM_REPO_BRANCH")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue