fix json start + improve logs
This commit is contained in:
parent
a590d0f1b5
commit
6122d9ee13
|
@ -1,5 +1,5 @@
|
||||||
nohup bash /app/MsRewards-Reborn/sse.sh &
|
nohup redis-server &> nohup_redis.out &
|
||||||
|
nohup bash /app/MsRewards-Reborn/sse.sh &> nohup_sse.out &
|
||||||
service grafana-server start
|
service grafana-server start
|
||||||
service nginx start
|
service nginx start
|
||||||
nohup redis-server &
|
|
||||||
gunicorn --reload --worker-class gevent -b 0.0.0.0:6666 'app:app'
|
gunicorn --reload --worker-class gevent -b 0.0.0.0:6666 'app:app'
|
||||||
|
|
5
V6.py
5
V6.py
|
@ -651,8 +651,8 @@ def json_start(json_entry, cred: UserCredentials):
|
||||||
|
|
||||||
config.set_display(SmartDisplay(backend="xvnc", size=(1920, 1080), rfbport=2345, color_depth=24))
|
config.set_display(SmartDisplay(backend="xvnc", size=(1920, 1080), rfbport=2345, color_depth=24))
|
||||||
config.display.start()
|
config.display.start()
|
||||||
|
account_id = 0
|
||||||
for account_id in range(5):
|
while config.UserCredentials.is_valid():
|
||||||
start = False
|
start = False
|
||||||
for action in ["unban", "tout", "pc", "mobile", "daily"]:
|
for action in ["unban", "tout", "pc", "mobile", "daily"]:
|
||||||
try:
|
try:
|
||||||
|
@ -714,6 +714,7 @@ def json_start(json_entry, cred: UserCredentials):
|
||||||
error(f"CustomStart {e}")
|
error(f"CustomStart {e}")
|
||||||
driver.close()
|
driver.close()
|
||||||
cred.next_account()
|
cred.next_account()
|
||||||
|
account_id += 1
|
||||||
config.display.stop()
|
config.display.stop()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,4 +16,4 @@ services:
|
||||||
- "2345:2345"
|
- "2345:2345"
|
||||||
shm_size: 2gb
|
shm_size: 2gb
|
||||||
volumes:
|
volumes:
|
||||||
- "./:/data"
|
- "./data/:/data"
|
||||||
|
|
Loading…
Reference in New Issue