Skip to content

Commit 485279a

Browse files
committed
Adding File hello.js
1 parent b4b7083 commit 485279a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

hello.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
var express=require("express");
2+
var logfmt = require("logfmt");
3+
var app=express();
4+
5+
/*app.use(logfmt.requestLogger());
6+
7+
app.get('/', function(req,res) {
8+
9+
//res.send('Welcome to slipperyslope!');
10+
express.static(__dirname + '/public');
11+
12+
});
13+
*/
14+
15+
app.use('/', express.static(__dirname + '/public/freelancer'));
16+
17+
var port = Number(process.env.PORT || 5000);
18+
19+
app.listen(port,function() {
20+
21+
console.log("Listening on "+port);
22+
23+
24+
});

0 commit comments

Comments
 (0)