Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanv33 committed Oct 11, 2021
1 parent a87a627 commit ffe7af8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions express.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const express = require("express");
const app = express();
const Port = process.env.Port || 5000;
const PORT = process.env.PORT || 5000;
const path = require("path");

app.use("/", express.static(path.join(__dirname, "web/build")));
Expand Down Expand Up @@ -37,6 +37,6 @@ app.get("/**", (req, res) =>
// res.sendFile(path.join(__dirname, "web/build/index.html"))
// );

app.listen(Port, () =>
console.log(`Example app listening on port port! http://localhost:${Port}`)
app.listen(PORT, () =>
console.log(`Example app listening on port port! http://localhost:${PORT}`)
);

0 comments on commit ffe7af8

Please sign in to comment.