From 4375215baa4937998329652c9f11a6144dfd06aa Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 18 Feb 2024 19:12:58 +0000 Subject: [PATCH] Update port number in Dockerfile and server.js --- mock-backend/.gitignore | 5 +++++ mock-backend/Dockerfile | 2 +- mock-backend/src/server.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 mock-backend/.gitignore diff --git a/mock-backend/.gitignore b/mock-backend/.gitignore new file mode 100644 index 00000000..bca646a7 --- /dev/null +++ b/mock-backend/.gitignore @@ -0,0 +1,5 @@ + +# Elastic Beanstalk Files +.elasticbeanstalk/* +!.elasticbeanstalk/*.cfg.yml +!.elasticbeanstalk/*.global.yml diff --git a/mock-backend/Dockerfile b/mock-backend/Dockerfile index 5903b27e..588636a9 100644 --- a/mock-backend/Dockerfile +++ b/mock-backend/Dockerfile @@ -6,6 +6,6 @@ COPY package*.json ./ RUN npm install COPY . . -EXPOSE 7091 +EXPOSE 8080 CMD [ "npm", "run", "start"] diff --git a/mock-backend/src/server.js b/mock-backend/src/server.js index 64f331fd..93c326b1 100644 --- a/mock-backend/src/server.js +++ b/mock-backend/src/server.js @@ -126,6 +126,6 @@ router.render = (req, res) => { server.use(router); -server.listen(7091, () => { +server.listen(8080, () => { console.log("JSON Server is running"); });