Skip to content

Commit

Permalink
Update backend port to 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-sellner committed May 27, 2024
1 parent e107c83 commit 90e9d00
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ vault kv get -format=json kv/internal-tools | python update_secret_files.py
docker-compose up --build
```

The backend runs at http://localhost:5000 and the frontend runs at http://localhost:3000. By default, we use GraphQL (with TypeScript backend), REST (with Python backend), MongoDB, with user auth.
The backend runs at http://localhost:8080 and the frontend runs at http://localhost:3000. By default, we use GraphQL (with TypeScript backend), REST (with Python backend), MongoDB, with user auth.


## Creating a Release
Expand Down
2 changes: 1 addition & 1 deletion backend/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ RUN pip install -r requirements.txt

COPY . ./app

EXPOSE 5000
EXPOSE 8080
ENTRYPOINT ["python", "server.py"]
2 changes: 1 addition & 1 deletion backend/python/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
config_name = os.getenv("FLASK_CONFIG") or "development"
app = create_app(config_name)

app.run(host="0.0.0.0", port=int(os.getenv("PORT", 5000)))
app.run(host="0.0.0.0", port=int(os.getenv("PORT", 8080)))
2 changes: 1 addition & 1 deletion backend/typescript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ RUN yarn install

COPY . ./

EXPOSE 5000
EXPOSE 8080
ENTRYPOINT ["yarn", "dev"]
4 changes: 2 additions & 2 deletions backend/typescript/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ firebaseAdmin.initializeApp({
}),
});

app.listen({ port: process.env.PORT || 5000 }, () => {
app.listen({ port: process.env.PORT || 8080 }, () => {
/* eslint-disable-next-line no-console */
console.info(`Server is listening on port ${process.env.PORT || 5000}!`);
console.info(`Server is listening on port ${process.env.PORT || 8080}!`);
});
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- ./backend/typescript:/app
- /app/node_modules
ports:
- 5000:5000
- 8080:8080
dns:
- 8.8.8.8
# postgresql {
Expand All @@ -47,7 +47,7 @@ services:
context: ./backend/python
dockerfile: Dockerfile
ports:
- 5000:5000
- 8080:8080
dns:
- 8.8.8.8
volumes:
Expand Down

0 comments on commit 90e9d00

Please sign in to comment.