mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
migrated to redis
This commit is contained in:
1 parent
33e4b0376e
commit
9a3f6b5db8
9 files changed
+112
-45
No files matched your search
@@ -18,15 +18,10 @@ fi
|
||||
echo "Applying database migrations..."
|
||||
python manage.py migrate --noinput
|
||||
|
||||
echo "Creating cache table..."
|
||||
python manage.py createcachetable
|
||||
|
||||
echo "Collecting static files..."
|
||||
python manage.py collectstatic --no-input
|
||||
|
||||
mkdir -p media/flavors
|
||||
mkdir -p django_cache
|
||||
chmod -R 777 django_cache
|
||||
|
||||
# One-shot seed jobs. These should run on image first boot, not on every
|
||||
# restart. A marker file on the bind-mounted volume gates them.
|
||||
@@ -40,8 +35,6 @@ if [ ! -f "$SEED_MARKER" ]; then
|
||||
touch "$SEED_MARKER"
|
||||
else
|
||||
echo "Seed marker present — skipping seed commands. Trigger them from /admin if needed."
|
||||
# Banners are cheap + config-driven; always re-sync them.
|
||||
python manage.py seed_banners || echo "seed_banners failed (non-fatal)"
|
||||
fi
|
||||
|
||||
if [ "$#" -gt 0 ]; then
|
||||
|
||||
Reference in new issue
Block a user