summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-07-17 01:47:57 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-07-17 01:52:26 +0200
commitc21f4b3dacd597a15a5ec39d525df1dfe1b70376 (patch)
tree0dfc51d2ffeb7b5022d9ad852f2fd3620c72196a /scripts
parent2c6f98aeef4fa1aba5678fe17c8e762a11db7b40 (diff)
downloadrestaurant-orders-main.tar.gz
restaurant-orders-main.zip
Add project.main
Diffstat (limited to 'scripts')
-rw-r--r--scripts/celery.sh5
-rw-r--r--scripts/entrypoint.sh9
2 files changed, 14 insertions, 0 deletions
diff --git a/scripts/celery.sh b/scripts/celery.sh
new file mode 100644
index 0000000..aea4be8
--- /dev/null
+++ b/scripts/celery.sh
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3set -e
4
5celery -A restaurant_orders.celery worker --loglevel=info
diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh
new file mode 100644
index 0000000..b368fd4
--- /dev/null
+++ b/scripts/entrypoint.sh
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3set -e
4
5python manage.py collectstatic --noinput
6python manage.py makemigrations --noinput
7python manage.py migrate --noinput
8
9daphne -b 0.0.0.0 -p 8000 restaurant_orders.asgi:application