diff --git a/.changeset/smart-ghosts-search.md b/.changeset/smart-ghosts-search.md index 5d8b3676cb..d1d32e71af 100644 --- a/.changeset/smart-ghosts-search.md +++ b/.changeset/smart-ghosts-search.md @@ -7,3 +7,4 @@ Removed the database choice from the `create-app` command. This reduces the step from development to production by always installing the dependencies and templating the production configuration in `app-config.production.yaml`. Added `app-config.local.yaml` to allow for local configuration overrides. +To replicate this behavior in an existing installation simply `touch app-config.local.yaml` in the project root and apply your local configuration. diff --git a/.github/workflows/verify_e2e-linux.yml b/.github/workflows/verify_e2e-linux.yml index 212149e415..f3e38dc68b 100644 --- a/.github/workflows/verify_e2e-linux.yml +++ b/.github/workflows/verify_e2e-linux.yml @@ -80,5 +80,5 @@ jobs: BACKSTAGE_TEST_DISABLE_DOCKER: 1 POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres - POSTGRES_HOST: postgres - POSTGRES_PORT: 5432 + POSTGRES_HOST: localhost + POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} diff --git a/packages/e2e-test/src/commands/run.ts b/packages/e2e-test/src/commands/run.ts index 3e5b546225..e1477d98d7 100644 --- a/packages/e2e-test/src/commands/run.ts +++ b/packages/e2e-test/src/commands/run.ts @@ -62,10 +62,10 @@ export async function run() { print('Starting the app'); await testAppServe(pluginName, appDir); - const appConfig = path.resolve(appDir, 'app-config.yaml'); if (Boolean(process.env.POSTGRES_USER)) { print('Testing the PostgreSQL backend startup'); await preCleanPostgres(); + const appConfig = path.resolve(appDir, 'app-config.yaml'); const productionConfig = path.resolve(appDir, 'app-config.production.yaml'); await testBackendStart( appDir, @@ -76,7 +76,7 @@ export async function run() { ); } print('Testing the SQLite backend startup'); - await testBackendStart(appDir, '--config', appConfig); + await testBackendStart(appDir); if (process.env.CI) { // Cleanup actually takes significant time, so skip it in CI since the @@ -408,7 +408,7 @@ async function dropDB(database: string) { }; try { - await pgtools.dropdb({ config }, database); + await pgtools.dropdb(config, database); } catch (_) { /* do nothing*/ }