Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
Init simple express server
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Konev committed May 9, 2015
1 parent 0dcceef commit 16f2f59
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var express = require('express'),
path = require('path'),
fs = require('fs'),
app = express();

app.get('/', function(req, res, next) {
res.send('Sup, man!');
});

var sock = path.join(__dirname, 'run', 'index.sock');
fs.unlinkSync(sock);
console.log(sock);
app.listen(sock);

0 comments on commit 16f2f59

Please sign in to comment.