Skip to content

Commit

Permalink
Merge pull request #33 from backstage/djamaile-patch-1
Browse files Browse the repository at this point in the history
fix: change order of merging configs
  • Loading branch information
djamaile authored Jan 10, 2024
2 parents ebc537b + 0942039 commit 2e04292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/programs/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ export const AWSProgram = (opts: OptionValues) => {
DATABASE_PASSWORD: db?.masterPassword,
};

const CONTAINER_SERVICE_URL = containerService.url.apply(url =>
url.endsWith('/') ? url.slice(0, -1) : url
const containerServiceUrl = containerService.url.apply(url =>
url.endsWith('/') ? url.slice(0, -1) : url,
);

/* eslint-disable no-new */
new aws.lightsail.ContainerServiceDeploymentVersion(
`${opts.stack}-deployment`,
Expand All @@ -206,7 +207,7 @@ export const AWSProgram = (opts: OptionValues) => {
APP_CONFIG_app_baseUrl: containerService.url,
}
: {
BACKSTAGE_HOST: CONTAINER_SERVICE_URL,
BACKSTAGE_HOST: containerServiceUrl,
}),
...providedEnvironmentVariables,
...(opts.withDb || opts.quickstart ? DB_ENVS : {}),
Expand Down
2 changes: 1 addition & 1 deletion templates/pulumi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ RUN echo "techdocs:" >> app-config.deployment.yaml
RUN echo " generator:" >> app-config.deployment.yaml
RUN echo " runIn: 'local'" >> app-config.deployment.yaml

CMD ["node", "packages/backend", "--config", "app-config.deployment.yaml", "--config", "app-config.yaml"]
CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.deployment.yaml"]

0 comments on commit 2e04292

Please sign in to comment.