Update run-dev.py
This commit is contained in:
parent
4629014b34
commit
c0d8f3aae5
|
@ -10,9 +10,7 @@ load_dotenv() # take environment variables from .env.
|
||||||
|
|
||||||
def runSetup():
|
def runSetup():
|
||||||
def alert(missing):
|
def alert(missing):
|
||||||
print(
|
print(f"\nCopy your {missing} and save it as an environment variable.\n")
|
||||||
f"\nCopy your {missing} and save it into Secrets (Environment variables) Sidebar!\n"
|
|
||||||
)
|
|
||||||
|
|
||||||
req_env_vars = ["API_ID", "API_HASH", "INDEX_SETTINGS"]
|
req_env_vars = ["API_ID", "API_HASH", "INDEX_SETTINGS"]
|
||||||
|
|
||||||
|
@ -24,7 +22,7 @@ def runSetup():
|
||||||
|
|
||||||
if os.getenv("SESSION_STRRING") is None:
|
if os.getenv("SESSION_STRRING") is None:
|
||||||
os.system("python app/generate_session_string.py")
|
os.system("python app/generate_session_string.py")
|
||||||
print("\nCopy your SESSION_STRING from above and save it into Secrets (Environment variables) Sidebar!")
|
print("\nCopy your SESSION_STRING from above and save it as an environment variable.")
|
||||||
return
|
return
|
||||||
|
|
||||||
os.system("python -m app")
|
os.system("python -m app")
|
||||||
|
|
Loading…
Reference in New Issue