allow for port 3001 and 3000

This commit is contained in:
aminamos
2020-04-07 08:53:21 -07:00
parent 332bc2d6bd
commit b0017ce6aa

View File

@@ -35,6 +35,7 @@ server.use("/service-worker.js", (req, res) =>
);
server.use(router);
server.listen(3000, () => {
console.log("JSON Server is running on port 3000");
});
const port = process.env.PORT || 3000
server.listen(port, () => {
console.log(`JSON Server is running on port ${port}`);
});