fix
parent
68db31a033
commit
02134d247a
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue