#!/usr/bin/env node'use strict';/** * Module dependencies. */varexpress=require('express');/** * Main application entry file. * Please note that the order of loading is important. */// Initializing system variablesvarconfig=require('./server/config/config');// Load configurations// Set the node enviornment variable if not set beforeprocess.env.NODE_ENV=config.nodeEnv;varapp=express();// Express settingsrequire('./server/config/express')(app);// Start the app by listening on <port>varport=process.env.PORT||config.port;app.listen(port);console.log('Environment is = "'+process.env.NODE_ENV+'"');console.log('Express app started on port '+port+' using config\n',config);// Expose appmodule.exports=app;