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()