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
commands:
- 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
depends_on:
- dependencies

View File

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

View File

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