Skip to content

Commit

Permalink
Use config for App port
Browse files Browse the repository at this point in the history
  • Loading branch information
joneubank committed Aug 5, 2021
1 parent 0742311 commit ca4e36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const App = (config: AppConfig): express.Express => {
};

const app = express();
app.set('port', process.env.PORT || 3000);
app.set('port', config.serverPort);
app.use(bodyParser.json());

app.get('/', (req, res) => res.status(200).send('Data Centers Registry'));
Expand Down

0 comments on commit ca4e36e

Please sign in to comment.