quiet down build_app log; use node 0.10 in install script
authorTravis Webb <me@traviswebb.com>
Wed, 27 Aug 2014 06:21:41 +0000 (02:21 -0400)
committerTravis Webb <me@traviswebb.com>
Wed, 27 Aug 2014 06:21:41 +0000 (02:21 -0400)
scripts/install_xtuple.sh
scripts/lib/util/init_database.js

index 531f85b..fe47f90 100644 (file)
@@ -23,7 +23,7 @@ sudo apt-get -q -y install \
   python-software-properties \
   software-properties-common
 
-NODE_VERSION=0.8.26
+NODE_VERSION=0.10.31
 
 DEBDIST=`lsb_release -c -s`
 echo "Trying to install xTuple for platform ${DEBDIST}"
index 1fdb2eb..c06d1ea 100644 (file)
@@ -38,8 +38,8 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
         var process = proc.spawn('psql', [
           '-U', creds.username, '-h', creds.hostname, '--single-transaction', '-p',
           creds.port, '-d', databaseName, '-f', schemaPath
-        ], { stdio: 'inherit' });
-        process.on('exit', done);
+        ]);
+        process.on('close', done);
         
       },
       populateData = function (done) {
@@ -47,8 +47,8 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
         var process = proc.spawn('psql', [
           '-U', creds.username, '-h', creds.hostname, '--single-transaction', '-p',
           creds.port, '-d', databaseName, '-f', spec.source
-        ], { stdio: 'inherit'});
-        process.on('exit', done);
+        ]);
+        process.on('close', done);
       },
       // use exec to restore the backup. The alternative, reading the backup file into a string to query
       // doesn't work because the backup file is binary.
@@ -56,8 +56,8 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
         var process = proc.spawn('pg_restore', [
           '-U', creds.username, '-h', creds.hostname, '-p', creds.port, '-d', databaseName,
           '-j', os.cpus().length, spec.backup
-        ], { stdio: 'inherit' });
-        process.on('exit', function (err, res) {
+        ]);
+        process.on('close', function (err, res) {
           if (err) {
             console.log("ignoring restore db error", err);
           }