fix
parent
3df3c67e7c
commit
5a133a05e1
|
@ -60,7 +60,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- .:/usr/src/fastfood
|
- .:/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:
|
celery:
|
||||||
container_name: celery
|
container_name: celery
|
||||||
|
|
|
@ -46,10 +46,11 @@ if __name__ == '__main__':
|
||||||
celery_worker_process.start()
|
celery_worker_process.start()
|
||||||
celery_beat_process.start()
|
celery_beat_process.start()
|
||||||
|
|
||||||
if '--run-server' in sys.argv:
|
if '--run-docker-server' in sys.argv:
|
||||||
pass
|
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_worker_process.start()
|
||||||
celery_beat_process.start()
|
celery_beat_process.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue