Change serve dist port
This commit is contained in:
parent
52f37bb9fb
commit
cfd61526d6
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in New Issue
Block a user