Add option to overwrite the default instance with user env var
This commit is contained in:
parent
06a65543e4
commit
c278dd35e2
|
@ -14,6 +14,7 @@ tasks:
|
|||
echo "STATIC_URL=http://localhost:8000/staticfiles/" >> .env
|
||||
echo "GITPOD_WORKSPACE_URL=$GITPOD_WORKSPACE_URL" >> .env
|
||||
echo "HMR_PORT=8000" >> .env
|
||||
echo "VUE_APP_INSTANCE_URL=$VUE_APP_INSTANCE_URL" >> .env
|
||||
|
||||
# Prepare docker
|
||||
docker network create federation
|
||||
|
|
|
@ -70,6 +70,21 @@ automatically in old and new workspaces.
|
|||
The scope ``funkwhale/*`` will ensure that you will be signed into our instance on every
|
||||
project that we're hosting, not only Funkwhale itself.
|
||||
|
||||
Custom instance url
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
If you don't plan to use the instance that is provided and reacts to your code changes
|
||||
or you prefer to use your own instance and save a couple of clicks every time you create
|
||||
a new workspace, you can set a user user environment variable in `your Gitpod settings <https://gitpod.io/variables>`_.
|
||||
|
||||
+--------- ----------------+-----------------------------------+-------------------------+
|
||||
| Name | Value | Scope |
|
||||
+==========================+===================================+=========================+
|
||||
| ``VUE_APP_INSTANCE_URL`` | ``https://funkwhale.example.com`` | ``funkwhale/funkwhale`` |
|
||||
+--------------------------+-----------------------------------+-------------------------+
|
||||
|
||||
The scope ``funkwhale/funkwhale`` will ensure that this variable works only on funkwhale.
|
||||
|
||||
A quick path to contribute on the front-end
|
||||
-------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue