From 14252854e702e08c84f55bce34c955b80b4e7cdc Mon Sep 17 00:00:00 2001 From: wvffle Date: Sat, 2 Jul 2022 12:01:42 +0000 Subject: [PATCH] Fix MEDIA_URL and STATIC_URL --- .gitpod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 1b14d3c9b..000ec6799 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -10,8 +10,8 @@ tasks: # Prepare .env echo "# Gitpod Environment Variables" > .env - echo "MEDIA_URL=http://localhost:8000/media/" >> .env - echo "STATIC_URL=http://localhost:8000/staticfiles/" >> .env + echo "MEDIA_URL=`gp url 8000`/media/" >> .env + echo "STATIC_URL=`gp url 8000`/staticfiles/" >> .env echo "FUNKWHALE_HOSTNAME=`gp url 8000 | sed 's#https://##'`" >> .env echo "GITPOD_WORKSPACE_URL=$GITPOD_WORKSPACE_URL" >> .env echo "HMR_PORT=8000" >> .env