This commit is contained in:
flaskfarm
2022-10-06 14:39:43 +09:00
parent 435c5c9c36
commit b4e737a6b2
19 changed files with 378 additions and 248 deletions

View File

@@ -12,7 +12,9 @@ sys.path.insert(1, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib
try:
from framework import frame
if __name__ in ['__main__', 'flaskfarm.main']:
# flaskfarm.main : 패키지로 실행. 패키지로 celry 실행 체크
if __name__ in ['__main__', 'flaskfarm.main'] and sys.argv[0].endswith('celery') == False:
frame.start()
else:
app = frame.app