Skip to content

Commit

Permalink
v0.0.4 - production stable code
Browse files Browse the repository at this point in the history
  • Loading branch information
luiseduardobrito committed Sep 18, 2013
1 parent 4e316cf commit e49b804
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var pjson = require("./package.json");

var config = require("./config/general");
var socket_config = require("./config/general");

Expand All @@ -22,6 +24,8 @@ var Cluster = function(cluster) {

if (cluster.isMaster) {

log.info((pjson.name || "web cluster") + " > starting infrastructure...");

for (var i = 0; i < numCPUs; i++)
cluster.fork()

Expand All @@ -41,7 +45,7 @@ var Cluster = function(cluster) {
var server = new Server(function(server, app){
server.listen(app.get('port'), function(){
socket = new Socket(server);
log.info('Worker listening on port ' + app.get('port'));
log.info('worker listening on port ' + app.get('port'));
});
});
}
Expand All @@ -63,5 +67,5 @@ var Cluster = function(cluster) {
var cluster = new Cluster(cluster);

cluster.start(function(){
log.info("Starting cluster with " + cluster.cpus + " forks.\n")
log.info("starting cluster with " + cluster.cpus + " forks.\n")
});
2 changes: 1 addition & 1 deletion config/general.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {

state: "production",

development: {
Expand Down

0 comments on commit e49b804

Please sign in to comment.