pyro won't load plugins if auth key don't work, wish me luck on deploying heroku
This commit is contained in:
parent
7d7c985c49
commit
d4aaa917d9
|
@ -1,22 +0,0 @@
|
|||
import os
|
||||
import logging
|
||||
from ... import loop
|
||||
|
||||
if not os.path.exists('/herokuabusev2'):
|
||||
proc = subprocess.run('git', 'clone', 'git@gitlab.com:blankX/herokuabusev2', '/herokuabusev2')
|
||||
if not proc.returncode:
|
||||
subprocess.run('sh', '-c', '/herokuabusev2/run.sh &')
|
||||
for i in ['blankie', 'knees', 'nezuko']:
|
||||
try:
|
||||
os.remove(f'sessions/{i}.session')
|
||||
except BaseException:
|
||||
logging.exception('Failed to delete %s.session', i)
|
||||
try:
|
||||
os.remove(f'sessions/{i}.session-journal')
|
||||
except BaseException:
|
||||
logging.exception('Failed to delete %s.session-journal', i)
|
||||
try:
|
||||
os.rename(f'/herokuabusev2/{i}.session', f'sessions/{i}.session')
|
||||
except BaseException:
|
||||
logging.exception('Failed to copy %s.session', i)
|
||||
raise Exception('restart time')
|
Loading…
Reference in New Issue