Comparing version 0.1.0-beta-16 to 0.1.0-beta-17
@@ -15,3 +15,4 @@ "use strict"; | ||
initalized: Type.BOOLEAN, | ||
listenPort: Type.NUMBER | ||
listenPort: Type.NUMBER, | ||
listenHost: Type.STRING | ||
}, { | ||
@@ -31,2 +32,4 @@ /** | ||
this.listenPort = 8080; | ||
this.listenHost = "127.0.0.1"; | ||
}, | ||
@@ -177,3 +180,3 @@ /** | ||
// this must be last ! | ||
server.listen(this.listenPort); | ||
server.listen(this.listenPort, this.listenHost); | ||
// logger | ||
@@ -187,2 +190,15 @@ logger.print(env); | ||
* @author Igor Ivanovic | ||
* @method Bootstrap#setListenHost | ||
* | ||
* @description | ||
* Set listen host | ||
*/ | ||
setListenHost: function Bootstrap_setListenHost(host) { | ||
if (Type.isString(host)) { | ||
this.listenHost = host; | ||
} | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Bootstrap#setListenPort | ||
@@ -189,0 +205,0 @@ * |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-beta-16", | ||
"version": "0.1.0-beta-17", | ||
"dependencies" : { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109935
3507