fix: docker build
This commit is contained in:
+2
-2
@@ -9,9 +9,9 @@ RUN_SERVER=${RUN_SERVER:="FALSE"}
|
||||
RUN_CELERY=${RUN_CELERY:="FALSE"}
|
||||
|
||||
if [ $RUN_SERVER = "TRUE" ]; then
|
||||
uvicorn --workers $ASGI_WORKERS --host $ASGI_HOST --port $ASGI_PORT config.asgi:application
|
||||
python -m uvicorn --workers $ASGI_WORKERS --host $ASGI_HOST --port $ASGI_PORT config.asgi:application
|
||||
elif [ $RUN_CELERY = "TRUE" ]; then
|
||||
celery -A config worker
|
||||
python -m celery -A config worker
|
||||
else
|
||||
echo "You have to set RUN_CELERY or RUN_SERVER to TRUE"
|
||||
echo "Exiting"
|
||||
|
||||
Reference in New Issue
Block a user