Skip to content

Commit

Permalink
Merge pull request #148 from TheBenji/master
Browse files Browse the repository at this point in the history
httpServer accessable
  • Loading branch information
JedWatson committed Jan 29, 2014
2 parents 79da0da + 322549b commit 2e67493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ Keystone.prototype.start = function(onStart) {

// Create the http server
var listen = function() {
http.createServer(app).listen(app.get('port'), app.get('host'), function() {
keystone.httpServer = http.createServer(app);
keystone.httpServer.listen(app.get('port'), app.get('host'), function() {
console.log(keystone.get('name') + ' is ready on port ' + app.get('port'));
if ('function' == typeof onStart)
onStart();
Expand Down

0 comments on commit 2e67493

Please sign in to comment.