mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-24 14:25:00 +00:00
17 lines
426 B
JavaScript
17 lines
426 B
JavaScript
/* jshint -W098 */
|
|
(function() {
|
|
var scribe = require('../scribe')(),
|
|
express = require('express'),
|
|
app = express(),
|
|
console = process.console;
|
|
|
|
app.set('port', (process.env.PORT || 5000));
|
|
|
|
app.use(scribe.express.logger()); //Log each request
|
|
|
|
var port = app.get("port");
|
|
|
|
app.listen(port, function() {
|
|
console.time().log('Server listening at port ' + port);
|
|
});
|
|
})();
|