Allow anonymous access to gitpod

environments/review-front-deve-otr6gc/deployments/13419
wvffle 2022-07-19 01:29:31 +00:00 zatwierdzone przez Georg Krause
rodzic 58d40a1eea
commit 57693d85fc
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -2,6 +2,7 @@ from django.core.management.commands.migrate import Command as BaseCommand
from django.core.management import call_command
from funkwhale_api.music.models import Library
from funkwhale_api.users.models import User
from funkwhale_api.common import preferences
import uvicorn
import debugpy
import os
@ -45,6 +46,9 @@ class Command(BaseCommand):
user.save()
# Allow anonymous access
preferences.set("common__api_authentication_required", False)
# Download music catalog
os.system("git clone https://dev.funkwhale.audio/funkwhale/catalog.git /tmp/catalog")
os.system("mv -f /tmp/catalog/music /workspace/funkwhale/data")