better system for deployment

This commit is contained in:
2024-09-03 17:29:25 +02:00
parent d598fb9dbd
commit 521af5251c
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -1,5 +1,4 @@
import os
print(os.environ)
BOT_TOKEN=os.environ['BOT_TOKEN']
USE_INVITE_SERVER=os.environ['USE_INVITE']=='true'
INVITE_SERVER_URL='127.0.0.1'
+2
View File
@@ -4,6 +4,8 @@ from threading import Thread
env = os.environ.copy()
print(env)
run = lambda a: run_start(a, env=env)
t1 = Thread(target=run, args=(['./.venv/bin/python3', 'invite_sys.py'],))