funkwhale: Ensure migrations are applied

This commit is contained in:
Alexander Olofsson 2019-10-16 13:47:34 +02:00
parent a439a0ab34
commit 04665b4618
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 5 additions and 2 deletions

View file

@ -4,4 +4,4 @@ appVersion: "0.20.0"
description: A social platform to enjoy and share music description: A social platform to enjoy and share music
icon: https://funkwhale.audio/favicon.png icon: https://funkwhale.audio/favicon.png
name: funkwhale name: funkwhale
version: 0.2.5 version: 0.2.6

View file

@ -36,7 +36,10 @@ spec:
# Copy frontend files for the front pod # Copy frontend files for the front pod
cp -r frontend/* /srv/funkwhale/frontend/ cp -r frontend/* /srv/funkwhale/frontend/
# Ensure the server binds to a unix socket # Apply any waiting migrations
/app/manage.py migrate
# Make the server bind to a unix socket
if [ -e compose/django/daphne.sh ]; then if [ -e compose/django/daphne.sh ]; then
sed -e 's!-b 0.0.0.0 -p 5000!-u /run/funkwhale/funkwhale.sock!' -i compose/django/daphne.sh sed -e 's!-b 0.0.0.0 -p 5000!-u /run/funkwhale/funkwhale.sock!' -i compose/django/daphne.sh
compose/django/entrypoint.sh compose/django/daphne.sh compose/django/entrypoint.sh compose/django/daphne.sh