-
-
Save alejandro/e99a00a9717fde7adfe7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<<<<<< HEAD | |
<<<<<<< HEAD | |
<<<<<<< HEAD | |
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\nApp (dlq) is running on Node.JS ' + process.version); | |
}).listen(16269); | |
======= | |
/** | |
* Module dependencies. | |
*/ | |
======= | |
>>>>>>> a47b634abf73ffb31468d74adf47ad9ac72d5950 | |
var express = require('express') | |
, routes = require('./routes'); | |
======= | |
var express = require('express'); | |
routes = require('./routes'); | |
>>>>>>> 170abaaa44713cdc92d4ed2393bffbee33b618aa | |
var app = module.exports = express.createServer(); | |
app.configure(function(){ | |
app.set('views', __dirname + '/views'); | |
app.set('view engine', 'jade'); | |
app.use(express.bodyParser()); | |
app.use(express.methodOverride()); | |
app.use(app.router); | |
app.use(express.static(__dirname + '/public')); | |
}); | |
app.configure('development', function(){ | |
app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); | |
}); | |
app.configure('production', function(){ | |
app.use(express.errorHandler()); | |
}); | |
// Routes | |
app.get('/', routes.index); | |
app.listen(16269); | |
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env); | |
>>>>>>> 1bf1b0fccf7e5503e7ef1c1cce697c2574a34915 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment