Browse Source

Roll back to nodev0.10.8 to prep for nvm setup.

Edward Bramanti 10 years ago
parent
commit
5636278ec4

+ 0 - 1
frameworks/JavaScript/express/setup.sh

@@ -4,7 +4,6 @@ export NODE_HOME=${IROOT}/node-v0.10.8-linux-x64
 sed -i 's|mongodb://.*/hello_world|mongodb://'"${DBHOST}"'/hello_world|g' app.js
 sed -i 's|localhost|'"${DBHOST}"'|g' app.js
 
-export NODE_HOME=${IROOT}/node-v0.12.0-linux-x64
 export PATH=$PATH:$NODE_HOME/bin
 
 ${NODE_HOME}/bin/npm install

+ 2 - 2
frameworks/JavaScript/hapi/app.js

@@ -8,8 +8,8 @@ var cluster = require('cluster'),
 	Hapi = require('hapi'),
 	mongoose = require('mongoose'),
 	async = require('async'),
-	conn = mongoose.connect('mongodb://localhost/hello_world'),
-	connMap = { user: 'benchmarkdbuser', password: 'benchmarkdbpass', database: 'hello_world', host: 'localhost', charset: 'utf8' };
+	conn = mongoose.connect('mongodb://127.0.0.1/hello_world'),
+	connMap = { user: 'benchmarkdbuser', password: 'benchmarkdbpass', database: 'hello_world', host: '127.0.0.1', charset: 'utf8' };
 
 var WorldSchema = new mongoose.Schema({
 		id          : Number,

+ 0 - 1
frameworks/JavaScript/hapi/setup.sh

@@ -4,7 +4,6 @@ export NODE_HOME=${IROOT}/node-v0.10.8-linux-x64
 sed -i 's|localhost|'"${DBHOST}"'|g' app.js
 
 export NODE_ENV=production
-export NODE_HOME=${IROOT}/node-v0.12.0-linux-x64
 export PATH=$PATH:$NODE_HOME/bin
 
 ${NODE_HOME}/bin/npm install

+ 4 - 4
frameworks/JavaScript/nodejs/hello.js

@@ -19,9 +19,9 @@ var http = require('http')
   , url = require('url')
   , async = require('async')
   , mongoose = require('mongoose')
-  , conn = mongoose.connect('mongodb://localhost/hello_world')
+  , conn = mongoose.connect('mongodb://127.0.0.1/hello_world')
   , MongoClient = require('mongodb').MongoClient
-  , connMap = { user: 'benchmarkdbuser', password: 'benchmarkdbpass', database: 'hello_world', host: 'localhost' };
+  , connMap = { user: 'benchmarkdbuser', password: 'benchmarkdbpass', database: 'hello_world', host: '127.0.0.1' };
 
 if (!windows) {
   var Mapper = require('mapper')  
@@ -29,12 +29,12 @@ if (!windows) {
     
     Mapper.connect(connMap, {verbose: false, strict: false});
     var World = Mapper.map("World", "id", "randomNumber")
-    libmysql.connectSync('localhost', 'benchmarkdbuser', 'benchmarkdbpass', 'hello_world');
+    libmysql.connectSync('127.0.0.1', 'benchmarkdbuser', 'benchmarkdbpass', 'hello_world');
 }
 
 var collection = null;
 
-MongoClient.connect('mongodb://localhost/hello_world?maxPoolSize=5', function(err, db) {
+MongoClient.connect('mongodb://127.0.0.1/hello_world?maxPoolSize=5', function(err, db) {
   collection = db.collection('world');
 });
 

+ 0 - 1
frameworks/JavaScript/nodejs/setup.sh

@@ -5,7 +5,6 @@ sed -i 's|localhost|'"${DBHOST}"'|g' hello.js
 sed -i 's|mongodb//.*/hello_world|mongodb//'"${DBHOST}"'/hello_world|g' hello.js
 
 export NODE_ENV=production
-export NODE_HOME=${IROOT}/node-v0.12.0-linux-x64
 export PATH=$PATH:$NODE_HOME/bin
 
 ${NODE_HOME}/bin/npm install

+ 5 - 6
toolset/setup/linux/languages/nodejs.sh

@@ -1,16 +1,15 @@
 #!/bin/bash
 
-RETCODE=$(fw_exists ${IROOT}/node-v0.12.0.installed)
+RETCODE=$(fw_exists ${IROOT}/node-v0.10.8.installed)
 [ ! "$RETCODE" == 0 ] || { return 0; }
 
-fw_get http://nodejs.org/dist/v0.12.0/node-v0.12.0-linux-x64.tar.gz
-fw_untar node-v0.12.0-linux-x64.tar.gz
+fw_get http://nodejs.org/dist/v0.10.8/node-v0.10.8-linux-x64.tar.gz
+fw_untar node-v0.10.8-linux-x64.tar.gz
 
 # Upgrade npm to avoid https://github.com/npm/npm/issues/4984
-export NODE_HOME=${IROOT}/node-v0.12.0-linux-x64
+export NODE_HOME=${IROOT}/node-v0.10.8-linux-x64
 export PATH=$PATH:$NODE_HOME/bin
 
 ${NODE_HOME}/bin/npm install -g npm
-${NODE_HOME}/bin/npm update
 
-touch ${IROOT}/node-v0.12.0.installed
+touch ${IROOT}/node-v0.10.8.installed