develop
Сергей Ванюшкин 2024-02-12 01:06:45 +03:00
parent 3df3c67e7c
commit 5a133a05e1
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

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