Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require("express"),
- port = process.env.PORT || 3000,
- app = express(),
- config = {domain: '*'};
- app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
- app.use(express.vhost('static.' + config.domain, require(__dirname + '/static.js')));
- app.use(express.vhost(config.domain, require(__dirname + '/web.js')));
- app.listen(port, function() {
- console.log("Express server listening on " + port + " in " + process.env.NODE_ENV + " mode.");
- });
Add Comment
Please, Sign In to add comment