chore: rewrite app-config instructrions

Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
djamaile
2023-06-01 17:15:02 +02:00
parent 124ab2fd47
commit e939b298a5
+6 -20
View File
@@ -134,38 +134,24 @@ Make sure that [Docker](https://docs.docker.com/) is running before you start th
After you have made your changes to your local instance, it's time to deploy it on Lightsail.
First, we need to configure the `app-config.yaml` and update the `baseUrl`.
```diff
app:
- baseUrl: http://localhost:3000
+ baseUrl: ${BACKSTAGE_HOST}
backend:
- baseUrl: http://localhost:7007
+ baseUrl: ${BACKSTAGE_HOST}
listen:
port: 7007
```
The environment variable `BACKSTAGE_HOST` will be set to the endpoint that AWS Lightsail creates.
In addition, you should create a `app-config.local.yaml`:
First, we need to configure a new `app-config` file and update the `baseUrl`.
```bash
$ touch app-config.local.yaml
$ touch app-config.deployment.yaml
```
And then update the file with the following yaml:
```yaml
app:
baseUrl: http://localhost:3000
baseUrl: ${BACKSTAGE_HOST}
backend:
baseUrl: http://localhost:7007
baseUrl: ${BACKSTAGE_HOST}
```
The environment variable `BACKSTAGE_HOST` will be set to the endpoint that AWS Lightsail creates.
Now we can deploy our instance!
```bash