Skip to content

Instantly share code, notes, and snippets.

@magiccyril
Created August 11, 2015 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magiccyril/9937ac34196ad9edca63 to your computer and use it in GitHub Desktop.
Save magiccyril/9937ac34196ad9edca63 to your computer and use it in GitHub Desktop.
SimpleHosting Gandi multiple node apps
/**
* 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