From f6359bf3db9c2fb522c589fa40de50de0fd75e9c Mon Sep 17 00:00:00 2001 From: Pat Heard Date: Mon, 22 Jul 2024 09:13:46 -0400 Subject: [PATCH] chore: use port 3001 by default Update the API to run on port 3001 by default. This will prevent local port clashes with the form viewer's default port. --- Dockerfile | 2 +- README.md | 2 +- index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 98e279eb..39bf0faa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ RUN yarn install # Copy local code to the container image. COPY . . -EXPOSE 3000 +EXPOSE 3001 ENTRYPOINT [ "yarn", "start"] \ No newline at end of file diff --git a/README.md b/README.md index dbe59441..e6dcc334 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ Machine-to-machine interface for downloading form submissions. `docker build -t forms-api .` -`docker run -p 3000:3000 forms-api` +`docker run -p 3001:3001 forms-api` diff --git a/index.js b/index.js index 12dc5837..d34f4410 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ import { initialize } from 'express-openapi'; const app = new express(); -const port = process.env.PORT || 3000; +const port = process.env.PORT || 3001; initialize({ app,