Fixes
This commit is contained in:
parent
2430900fc7
commit
16a61d71f3
1 changed files with 7 additions and 7 deletions
14
server.js
14
server.js
|
@ -1,15 +1,15 @@
|
||||||
//Dependencies
|
//Dependencies
|
||||||
var express = require('express'),
|
var express = require('express');
|
||||||
webapp = express(),
|
var webapp = express();
|
||||||
Promise = require('promise'),
|
var Promise = require('promise');
|
||||||
morgan = require('morgan');
|
var morgan = require('morgan');
|
||||||
|
|
||||||
//OpenShift Settings
|
//OpenShift Settings
|
||||||
var ip = process.env.OPENSHIFT_NODEJS_IP || 'localhost',
|
var ip = process.env.OPENSHIFT_NODEJS_IP || 'localhost';
|
||||||
var port = process.env.OPENSHIFT_NODEJS_PORT || 3000;
|
var port = process.env.OPENSHIFT_NODEJS_PORT || 3000;
|
||||||
|
|
||||||
//Reporting
|
//Reporting
|
||||||
app.use(morgan('combined'));
|
webapp.use(morgan('combined'));
|
||||||
|
|
||||||
//External Routing
|
//External Routing
|
||||||
webapp.get('/', function (req, res, next) {
|
webapp.get('/', function (req, res, next) {
|
||||||
|
@ -29,7 +29,7 @@ webapp.get('/', function (req, res, next) {
|
||||||
webapp.use('/public', express.static(__dirname + '/public'));
|
webapp.use('/public', express.static(__dirname + '/public'));
|
||||||
|
|
||||||
//Webapp Initialize
|
//Webapp Initialize
|
||||||
app.listen(port, ip);
|
webapp.listen(port, ip);
|
||||||
console.log('working');
|
console.log('working');
|
||||||
|
|
||||||
module.exports = webapp;
|
module.exports = webapp;
|
Loading…
Add table
Add a link
Reference in a new issue