You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
243 B
JavaScript

3 years ago
const express = require("express");
const app = express();
// Heroku dynamically sets a port
const PORT = process.env.PORT || 5000;
app.use(express.static("dist"));
app.listen(PORT, () => {
console.log("server started on port 5000");
});