Change serve dist port

This commit is contained in:
kolaente 2021-07-25 14:40:06 +02:00
parent 52f37bb9fb
commit cfd61526d6
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ steps:
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000 CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000
commands: commands:
- sed -i 's/localhost/api/g' dist-dev/index.html - sed -i 's/localhost/api/g' dist-dev/index.html
- yarn serve:dist-dev & npx wait-on http://localhost:8000 - yarn serve:dist-dev & npx wait-on http://localhost:5000
- yarn test:frontend --browser chrome - yarn test:frontend --browser chrome
depends_on: depends_on:
- dependencies - dependencies

View File

@ -1,5 +1,5 @@
{ {
"baseUrl": "http://localhost:8000", "baseUrl": "http://localhost:5000",
"env": { "env": {
"API_URL": "http://localhost:3456/api/v1", "API_URL": "http://localhost:3456/api/v1",
"TEST_SECRET": "testingS3cr3et" "TEST_SECRET": "testingS3cr3et"

View File

@ -3,7 +3,7 @@ const express = require('express')
const app = express() const app = express()
const p = path.join(__dirname, '..', 'dist-dev') const p = path.join(__dirname, '..', 'dist-dev')
const port = 8000 const port = 5000
app.use(express.static(p)) app.use(express.static(p))
// Handle urls set by the frontend // Handle urls set by the frontend