Skip to content

Commit

Permalink
change default port to prevent clashing
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Oct 2, 2024
1 parent 682048e commit fdebfdc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ RUN npm install --legacy-peer-deps

# Set Env
ENV NODE_ENV production
EXPOSE 3000
EXPOSE 443

# Cmd script
CMD ["npm", "run", "start"]
2 changes: 0 additions & 2 deletions backend/Dockerfile.mac
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ RUN npm install --legacy-peer-deps

# Set Env
ENV NODE_ENV production
EXPOSE 3000
EXPOSE 443

# Cmd script
CMD ["npm", "run", "start"]
2 changes: 1 addition & 1 deletion backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ build-dev: ## Build the container image - Dvelopment
-f Dockerfile.dev .

run: ## Run the container image
docker run -d -it -p 3000:3000 ${APP_NAME}
docker run -d -it -p 5213:5213 ${APP_NAME}

pause: ## Pause the containers
docker container rm -f ${APP_NAME}
Expand Down
4 changes: 2 additions & 2 deletions backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const app = new App([new Route()]);
const server = http.createServer(app.getServer());
const eventHandler = new EventsHandler(server);

server.listen(3000, () => {
server.listen(5213, () => {
eventHandler.init();
logger.info(`=================================`);
logger.info('🚀 Subnet Stats Service listening on the port 3000');
logger.info('🚀 Subnet Stats Service listening on the port 5213');
logger.info(`=================================`);
});
2 changes: 1 addition & 1 deletion frontend/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -o errexit #force exit if 'yarn run build' fails
yarn run build
yarn global add serve
serve -s dist -l 5000
serve -s dist -l 5214

0 comments on commit fdebfdc

Please sign in to comment.