Skip to content

Commit

Permalink
revert previous
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDarsa committed Feb 26, 2024
1 parent cfc9979 commit 23ae30d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ui-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 => {
Expand Down

0 comments on commit 23ae30d

Please sign in to comment.