Skip to content
Snippets Groups Projects
Commit 09eae142 authored by Léopold Chappuis's avatar Léopold Chappuis
Browse files

misc: update dev port

port 5000 is usually already used by osx

Change-Id: I21fa463de2abcd9878777a597c81537e63cd962c
parent cf74113e
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@ The application is now `running on port 3000` of your local machine.
```
docker run -it \
-p 3000:3000 \
-p 5000:5000 \
-p 5002:5002 \
--volume ${PWD}/client/src:/web-client/client/src \
--volume ${PWD}/server/src:/web-client/server/src \
--volume ${PWD}/client/.env.development:/web-client/client/.env.development \
......
ESLINT_NO_DEV_ERRORS=true
VITE_API_URL=http://localhost:5000
\ No newline at end of file
VITE_API_URL=http://localhost:5002
\ No newline at end of file
{
"CLIENT_URL": "http://localhost:3000",
"SERVER_URL": "http://localhost:5000",
"SERVER_URL": "http://localhost:5002",
"TEST_USERNAME": "your-test-user",
"TEST_USER_PASSWORD": "your-test-password",
"USED_USERNAME": "your-used-username"
......
......@@ -14,7 +14,7 @@ services:
- ./client/.env.development:/web-client/client/.env.development
ports:
- '3000:3000'
- '5000:5000'
- '5002:5002'
stdin_open: true
depends_on:
- jami-daemon
......
......@@ -35,7 +35,7 @@ const isDev = process.env.NODE_ENV === 'development' ? true : false
log.setLevel(isDev ? 'trace' : 'error')
const port: string | number = isDev ? 5000 : 8080
const port: string | number = isDev ? 5002 : 8080
await Container.get(SigningKeys).build()
const jamid = Container.get(Jamid)
......
......@@ -402,7 +402,7 @@ adminRouter.get(
const protocol = req.secure ? 'https' : 'http'
const host = req.get('host')
const baseUrl = devMode ? 'http://localhost:5000' : `${protocol}://${host}`
const baseUrl = devMode ? 'http://localhost:5002' : `${protocol}://${host}`
if (providerConfig === undefined) {
res.status(HttpStatusCode.InternalServerError).send('Provider configuration not found')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment