From 09f842f40934b7a68b5a4a50f742bd4ef64d1506 Mon Sep 17 00:00:00 2001 From: Daniel31x13 Date: Tue, 19 Jul 2022 21:23:24 -0400 Subject: [PATCH] Small change. --- README.md | 6 +++--- api/Dockerfile | 2 +- api/config.js | 2 +- docker-compose.yml | 4 ++-- src/config.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 960696a..d5b4880 100644 --- a/README.md +++ b/README.md @@ -58,11 +58,11 @@ The app will be deployed on port 3000. To configure the app create a `.env` file (in the main folder), here are the available variables: ``` CLIENT_PORT=2500 # Default: 3000 -API_PORT=5500 # Default: 5000 -API_ADDRESS=192.168.1.14 # Default: localhost* +API_PORT=5700 # Default: 5500 +API_ADDRESS=192.168.1.14 # Default: localhost ``` -> *If you want to use this app across the network set `API_ADDRESS` as the computer (where LinkWarden is hosted) IP address. +> If you want to use this app across the network set `API_ADDRESS` as the computer (where LinkWarden is hosted) IP address. ### Manual Setup diff --git a/api/Dockerfile b/api/Dockerfile index e949dff..1c9a743 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -25,5 +25,5 @@ RUN chown -R node:node /home/node /media USER node -EXPOSE 5000 +EXPOSE 5500 CMD node server.js diff --git a/api/config.js b/api/config.js index b44faf3..056c0e7 100644 --- a/api/config.js +++ b/api/config.js @@ -1,4 +1,4 @@ -module.exports.port = process.env.PORT || 5000; +module.exports.port = process.env.PORT || 5500; module.exports.URI = process.env.MONGODB_URI || "mongodb://localhost:27017"; // URI module.exports.database = process.env.DB_NAME || "sample_db"; // Database name module.exports.collection = process.env.COLLECTION_NAME || "list"; // Collection name diff --git a/docker-compose.yml b/docker-compose.yml index 9a4af85..87f3847 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: volumes: - ./api:/home/node ports: - - ${API_PORT:-5000}:5000 + - ${API_PORT:-5500}:5500 restart: unless-stopped depends_on: - mongo @@ -28,7 +28,7 @@ services: build: . environment: # - DANGEROUSLY_DISABLE_HOST_CHECK=true - - REACT_APP_API_HOST=http://${API_ADDRESS:-localhost}:${API_PORT:-5000} + - REACT_APP_API_HOST=http://${API_ADDRESS:-localhost}:${API_PORT:-5500} command: npm run go volumes: - /home/node/node_modules diff --git a/src/config.js b/src/config.js index acbb2bc..a893fef 100644 --- a/src/config.js +++ b/src/config.js @@ -1 +1 @@ -export const API_HOST = process.env.REACT_APP_API_HOST || "http://localhost:5000"; // API full address +export const API_HOST = process.env.REACT_APP_API_HOST || "http://localhost:5500"; // API full address