Skip to content

Commit

Permalink
hardcode port
Browse files Browse the repository at this point in the history
  • Loading branch information
JEMeyer committed Jun 27, 2024
1 parent 95f4c7c commit 724fcff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This server's port (defaults to 3000 if not set)
PORT=

# Cors (optional, but defaults to [])
CORS_ORIGIN=

Expand Down
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ app.use('/api/models', modelsRouter);
app.use('/api/assignments', assignmentsRouter);

// Start server
const PORT = process.env.PORT || 3000;
server.listen(PORT, () => {
console.log(`Maestro API server listening on port ${PORT}`);
server.listen(3000, () => {
console.log(`Maestro API server listening on port 3000`);
});

0 comments on commit 724fcff

Please sign in to comment.