funkwhale: Ensure migrations are applied
This commit is contained in:
parent
a439a0ab34
commit
04665b4618
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue