Adopt Gitpod to architecture changes

fix-gitpod
Georg Krause 2023-10-12 15:55:59 +00:00
rodzic ccec8288ef
commit 9d23d10e23
4 zmienionych plików z 570 dodań i 557 usunięć

Wyświetl plik

@ -19,6 +19,7 @@ tasks:
gp ports await 5432 gp ports await 5432
poetry run funkwhale-manage migrate poetry run funkwhale-manage migrate
poetry run funkwhale-manage fw users create --superuser --username gitpod --password funkwhale --email test@example.org
poetry run funkwhale-manage gitpod init poetry run funkwhale-manage gitpod init
command: | command: |
echo "MEDIA_URL=`gp url 8000`/media/" >> ../.gitpod/.env echo "MEDIA_URL=`gp url 8000`/media/" >> ../.gitpod/.env
@ -62,7 +63,7 @@ tasks:
echo -e " \u1b[34m⣀⢀⡀⢀⣀\u1b[0m⠹⠇\u1b[34m⣀⡀⢀⡀⣀ \u1b[0mTo sign in to the superuser account," echo -e " \u1b[34m⣀⢀⡀⢀⣀\u1b[0m⠹⠇\u1b[34m⣀⡀⢀⡀⣀ \u1b[0mTo sign in to the superuser account,"
echo -e " \u1b[34m⢻⣇⠘⣧⡈⠻⠶⠶⠟⢁⣾⠃⣸⡟ \u1b[0mplease use these credentials:" echo -e " \u1b[34m⢻⣇⠘⣧⡈⠻⠶⠶⠟⢁⣾⠃⣸⡟ \u1b[0mplease use these credentials:"
echo -e " \u1b[34m⠻⣦⡈⠻⠶⣶⣶⠶⠟⢁⣴⠟" echo -e " \u1b[34m⠻⣦⡈⠻⠶⣶⣶⠶⠟⢁⣴⠟"
echo -e " \u1b[34m⠈⠻⠷⣦⣤⣤⣴⠾⠟⠁ gitpod\u1b[0m:\u1b[34mgitpod" echo -e " \u1b[34m⠈⠻⠷⣦⣤⣤⣴⠾⠟⠁ gitpod\u1b[0m:\u1b[34mfunkwhale"
echo "" echo ""
ports: ports:

Wyświetl plik

@ -18,7 +18,6 @@ services:
- 6379:6379 - 6379:6379
nginx: nginx:
command: /entrypoint.sh
env_file: env_file:
- ./.env - ./.env
image: nginx image: nginx
@ -33,11 +32,11 @@ services:
- "FUNKWHALE_FRONT_IP=host.docker.internal" - "FUNKWHALE_FRONT_IP=host.docker.internal"
- "FUNKWHALE_FRONT_PORT=8080" - "FUNKWHALE_FRONT_PORT=8080"
- "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-host.docker.internal}" - "FUNKWHALE_HOSTNAME=${FUNKWHALE_HOSTNAME-host.docker.internal}"
- "FUNKWHALE_PROTOCOL=https"
volumes: volumes:
- ../data/media:/protected/media:ro - ../data/media:/protected/media:ro
- ../data/music:/music:ro - ../data/music:/music:ro
- ../data/staticfiles:/staticfiles:ro - ../data/staticfiles:/staticfiles:ro
- ../deploy/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf:ro - ../deploy/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf:ro
- ../docker/nginx/conf.dev:/etc/nginx/nginx.conf.template:ro - ../docker/nginx/conf.dev:/etc/nginx/templates/default.conf.template:ro
- ../docker/nginx/entrypoint.sh:/entrypoint.sh:ro
- ../front:/frontend:ro - ../front:/frontend:ro

Wyświetl plik

@ -36,22 +36,7 @@ class Command(BaseCommand):
self.stdout.write("") self.stdout.write("")
def init(self): def init(self):
try: user = User.objects.get(username="gitpod")
user = User.objects.get(username="gitpod")
except Exception:
call_command(
"createsuperuser",
username="gitpod",
email="gitpod@example.com",
no_input=False,
)
user = User.objects.get(username="gitpod")
user.set_password("gitpod")
if not user.actor:
user.create_actor()
user.save()
# Allow anonymous access # Allow anonymous access
preferences.set("common__api_authentication_required", False) preferences.set("common__api_authentication_required", False)

1102
api/poetry.lock wygenerowano

Plik diff jest za duży Load Diff