From e939b298a527a776fe878034ad4a13d1f2ee000d Mon Sep 17 00:00:00 2001 From: djamaile Date: Thu, 1 Jun 2023 17:15:02 +0200 Subject: [PATCH] chore: rewrite app-config instructrions Signed-off-by: djamaile --- docs/deployment/backstage-deploy/aws.md | 26 ++++++------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/docs/deployment/backstage-deploy/aws.md b/docs/deployment/backstage-deploy/aws.md index 9d5fdc3ebb..93f38bcc3e 100644 --- a/docs/deployment/backstage-deploy/aws.md +++ b/docs/deployment/backstage-deploy/aws.md @@ -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