diff --git a/.github/workflows/ui-workflow.yaml b/.github/workflows/ui-workflow.yaml index c363d61f..bbc34b58 100644 --- a/.github/workflows/ui-workflow.yaml +++ b/.github/workflows/ui-workflow.yaml @@ -61,7 +61,7 @@ jobs: config-file: ./cypress/cypress.config.ts auto-cancel-after-failures: 1 wait-on: "http://0.0.0.0:3000" - build: yarn build && GRAPHQL_API=http://0.0.0.0:33000/graphql KEYCLOAK_API=http://0.0.0.0:38088/auth yarn start-testUI + build: yarn build && GRAPHQL_API=http://0.0.0.0:33000/graphql KEYCLOAK_API=http://0.0.0.0:38088/auth yarn start command: yarn cypress:runAll - name: Stop Docker containers diff --git a/package.json b/package.json index c3b62424..710572a2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "lint": "tsc && eslint -- src/", "build": "next build src", "start": "NODE_ENV=production node server.js", - "start-testUI": "NODE_ENV=production HOST=0.0.0.0 node server.js", "generateTourHash": "node tourHash.js", "storybook": "storybook dev -p 6006", "test-storybook": "test-storybook", diff --git a/server.js b/server.js index 582c8da6..c2111bdd 100644 --- a/server.js +++ b/server.js @@ -3,7 +3,6 @@ const next = require('next'); const dev = process.env.NODE_ENV !== 'production'; const port = dev ? 3003 : 3000; -const hostName = process.env.HOST || 'localhost'; const app = next({ dev, @@ -192,9 +191,9 @@ app return handle(req, res); }); - server.listen(port, hostName, err => { + server.listen(port, err => { if (err) throw err; - console.log(`> Ready on http://${hostName}:${port}`); + console.log('> Ready on http://localhost:' + port); }); }) .catch(ex => {