From 02134d247afb1e4ebcb069c544f7cc54f072598f Mon Sep 17 00:00:00 2001 From: pi3c Date: Mon, 12 Feb 2024 01:06:45 +0300 Subject: [PATCH] fix --- compose_app.yml | 2 +- manage.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/compose_app.yml b/compose_app.yml index 46203c4..aa17a83 100644 --- a/compose_app.yml +++ b/compose_app.yml @@ -60,7 +60,7 @@ services: volumes: - .:/usr/src/fastfood - command: /bin/bash -c 'poetry run python /usr/src/fastfood/manage.py --run-test-server' + command: /bin/bash -c 'poetry run python /usr/src/fastfood/manage.py --run-docker-server' celery: container_name: celery diff --git a/manage.py b/manage.py index 2ef59b1..1c275c7 100644 --- a/manage.py +++ b/manage.py @@ -46,10 +46,11 @@ if __name__ == '__main__': celery_worker_process.start() celery_beat_process.start() - if '--run-server' in sys.argv: - pass + if '--run-docker-server' in sys.argv: + loop.run_until_complete(recreate()) + loop.run_until_complete(run_app()) - if '--run-test-server' in sys.argv: + if '--run-local-server' in sys.argv: celery_worker_process.start() celery_beat_process.start()