Created
May 20, 2013 15:43
-
-
Save aseemk/5613063 to your computer and use it in GitHub Desktop.
Express 2 (Connect 1) vhosting.
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
express = require 'express' | |
app = express.createServer() | |
# ... | |
module.exports = app |
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
express = require 'express' | |
app = express.createServer() | |
# ... | |
module.exports = app |
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
express = require 'express' | |
app = express.createServer() | |
app.use express.vhost 'api.*', require 'app-api' | |
app.use express.vhost '*', require 'app-www' | |
app.listen settings.PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment