This commit is contained in:
flaskfarm
2022-10-13 16:12:55 +09:00
parent 18ed5ab966
commit f472a8ff48

View File

@@ -455,7 +455,11 @@ class Framework:
for i in range(10):
try:
#self.logger.debug(d(self.config))
self.socketio.run(self.app, host=host, port=self.config['port'], debug=self.config['debug'], use_reloader=self.config['debug'])
# allow_unsafe_werkzeug=True termux nohup 실행시 필요함
if self.config['running_type'] == 'termux':
self.socketio.run(self.app, host=host, port=self.config['port'], debug=self.config['debug'], use_reloader=self.config['debug'], allow_unsafe_werkzeug=True)
else:
self.socketio.run(self.app, host=host, port=self.config['port'], debug=self.config['debug'], use_reloader=self.config['debug'])
self.logger.warning(f"EXIT CODE : {self.__exit_code}")
# 2021-05-18
if self.config['running_type'] in ['termux', 'entware']: