Support online railway deployment

This commit is contained in:
Pin Fang
2023-03-25 10:02:19 +08:00
parent 04fec4a585
commit 2d0935741c
6 changed files with 34 additions and 11 deletions

6
app.py
View File

@@ -5,7 +5,8 @@ from channel import channel_factory
from common.log import logger
from plugins import *
if __name__ == '__main__':
def run():
try:
# load config
config.load_config()
@@ -21,3 +22,6 @@ if __name__ == '__main__':
except Exception as e:
logger.error("App startup failed!")
logger.exception(e)
if __name__ == '__main__':
run()