Permalink
Browse files

OShift without cluster

  • Loading branch information...
1 parent d65be0a commit dd0c2e0a3d529f0718c1a1dc34c0ac4cb092aaab xFontroSF committed Oct 8, 2012
Showing with 8 additions and 8 deletions.
  1. +3 −3 app.js
  2. +5 −5 client.js
View
6 app.js
@@ -18,7 +18,7 @@ args
.option('-c, --cluster', 'cluster of processes')
.parse(process.argv);
-if(cluster.isMaster) {
+/*if(cluster.isMaster) {
//console.log('Binding to port ', args.port);
console.log('Folder path: ', args.folder);
console.log('Processor: ' + require('os').cpus()[0].model);
@@ -32,7 +32,7 @@ if(cluster.isMaster) {
console.log('Cluster: no cluster');
cluster.fork();
}
-} else {
+} else {*/
app.configure(function (){
app.use(express.bodyParser());
@@ -94,4 +94,4 @@ if(cluster.isMaster) {
app.listen(port,ipaddr);//args.port,ipaddr);
console.log("Server has started at: "+ipaddr+":"+port);
-}
+//}
View
@@ -1,15 +1,15 @@
var http = require("http");
var req_options = {
- //host: '192.168.7.13',
- host: 'localhost',
+ host: '192.168.7.13',
+ //host: 'localhost',
port: '8080',
method: 'POST',
//path: '/sumar?op1=2&op2=4', //Exemple per a GET.
- //path: 'http://aritmeticops-nodetestingsf.rhcloud.com/dividir', //Exemple per a POST.
- path: '/sumar',
+ path: 'http://aritmeticops-nodetestingsf.rhcloud.com/sumar', //Exemple per a POST.
+ //path: '/surar',
headers: {
- //Host: "aritmeticops-nodetestingsf.rhcloud.com"
+ Host: "aritmeticops-nodetestingsf.rhcloud.com"
}
};

0 comments on commit dd0c2e0

Please sign in to comment.