allow for port 3001 and 3000
This commit is contained in:
7
index.js
7
index.js
@@ -35,6 +35,7 @@ server.use("/service-worker.js", (req, res) =>
|
|||||||
);
|
);
|
||||||
|
|
||||||
server.use(router);
|
server.use(router);
|
||||||
server.listen(3000, () => {
|
const port = process.env.PORT || 3000
|
||||||
console.log("JSON Server is running on port 3000");
|
server.listen(port, () => {
|
||||||
});
|
console.log(`JSON Server is running on port ${port}`);
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user