Skip to content

Commit

Permalink
chore: use port 3001 by default
Browse files Browse the repository at this point in the history
Update the API to run on port 3001 by default.  This will prevent
local port clashes with the form viewer's default port.
  • Loading branch information
patheard committed Jul 22, 2024
1 parent 559f6b5 commit f6359bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ RUN yarn install
# Copy local code to the container image.
COPY . .

EXPOSE 3000
EXPOSE 3001

ENTRYPOINT [ "yarn", "start"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f6359bf

Please sign in to comment.