From aae68a6937276f298eebe021663dac7835d5d46c Mon Sep 17 00:00:00 2001 From: soju6jan Date: Sun, 2 Oct 2022 23:11:14 +0900 Subject: [PATCH] test --- files/memo.txt | 23 +++++++++++++++++++++++ files/requirements_major.txt | 2 +- lib/framework/init_main.py | 6 ++++-- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/files/memo.txt b/files/memo.txt index 5fb6bc3..9c6a094 100644 --- a/files/memo.txt +++ b/files/memo.txt @@ -191,3 +191,26 @@ require_os' : "" need_decrypt_code: false need_filesize_check': false filesize: 0 + + + + + curl -Lo flaskfarm.sh https://flaskfarm.github.io/file/ubuntu/flaskfarm.sh + + + docker run -it --name test-ubuntu ubuntu:22.04 /bin/bash + + + apt update + apt install -y curl vim + + + +docker rm -f test-ubuntu + + curl -Lo flaskfarm.sh https://flaskfarm.github.io/file/ubuntu/flaskfarm.sh + +chmod 777 ./flaskfarm.sh +./flaskfarm.sh prepare + +./flaskfarm.sh install \ No newline at end of file diff --git a/files/requirements_major.txt b/files/requirements_major.txt index 98db52c..39399cb 100644 --- a/files/requirements_major.txt +++ b/files/requirements_major.txt @@ -2,7 +2,7 @@ psutil pycryptodome gevent gevent-websocket -celery==4.3.0 +celery==5.0.5 redis lxml pillow diff --git a/lib/framework/init_main.py b/lib/framework/init_main.py index 9c6c043..3853d81 100644 --- a/lib/framework/init_main.py +++ b/lib/framework/init_main.py @@ -104,9 +104,11 @@ class Framework: timezone='Asia/Seoul' ) from celery import bootsteps - from celery.bin import Option + #from celery.bin.base import CeleryOption + from click import Option + #from celery.bin import Option # 4.3.0 celery.user_options['worker'].add( - Option('--config_filepath', action='store', dest='config_filepath', default='.', help='') + Option(('--config_filepath',), help='') ) class CustomArgs(bootsteps.Step): def __init__(self, worker, config_filepath=None, **options):