Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Update index.js

  • Loading branch information...
paras-aggarwal committed Oct 12, 2018
1 parent 4115c4e commit 9ebc7e5fecb5694ea451df12d2f447e31e638ef9
Showing with 7 additions and 7 deletions.
  1. +7 −7 EJS/index.js
@@ -1,13 +1,13 @@
const express = require("express");
const express = require('express');
const app = express();
var port = 3000 || process.env.PORT;

app.set('view engine', 'ejs');

app.get("/", (req, res) => {
res.render('index.ejs');
})

port = 3000 || process.env.port;
app.listen(port,() =>
console.log(`running on port ${port}`)
)
});

app.listen(port, function() {
console.log('running on port ${port}');
}

0 comments on commit 9ebc7e5

Please sign in to comment.
You can’t perform that action at this time.