Created
August 11, 2015 20:37
-
-
Save magiccyril/9937ac34196ad9edca63 to your computer and use it in GitHub Desktop.
SimpleHosting Gandi multiple node apps
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
/** | |
* Main application entry file. | |
*/ | |
var rootApp = express(); | |
/** | |
* Load subapp. | |
*/ | |
var subapp1 = require('./subapp1.js'); | |
rootApp.use('/subapp1', subapp1); | |
// Start the rootApp by listening on <port> | |
var port = process.env.PORT || 3000; | |
rootApp.listen(port); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment