Skip to content

Commit

Permalink
Merge pull request #27 from digital-land/updatePort
Browse files Browse the repository at this point in the history
update to use port 5000
  • Loading branch information
GeorgeGoodall authored Dec 4, 2023
2 parents da34a6c + 63ea8c8 commit 450022b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/default.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
port: 3000
port: 5000
logs:
console: true
app: false
Expand Down
4 changes: 2 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RUN npm install

COPY . .

ENV PORT=3000
ENV PORT=5000

expose 3000
expose 5000

CMD ["npm", "start"]
5 changes: 3 additions & 2 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-check
import { defineConfig, devices } from '@playwright/test'
import config from './config/index.js'

/**
* Read environment variables from file.
Expand All @@ -25,7 +26,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://127.0.0.1:3000',
baseURL: `http://127.0.0.1:${config.port}`,

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry'
Expand Down Expand Up @@ -72,7 +73,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: 'concurrently "NODE_ENV=test npm run start" "NODE_ENV=test npm run mock:api"',
url: 'http://127.0.0.1:3000',
url: `http://127.0.0.1:${config.port}`,
reuseExistingServer: !process.env.CI
}
})

0 comments on commit 450022b

Please sign in to comment.