Browse Source

corsproxy shepherd API update & OS X Installer download files fix update

ca333-dev
Satinder Grewal 8 years ago
parent
commit
760943fc6d
  1. 11
      assets/BitRock Installer Files/IgaunaApp-OSX.xml
  2. 23
      routes/shepherd.js

11
assets/BitRock Installer Files/IgaunaApp-OSX.xml

@ -56,7 +56,11 @@
<showMessageOnError>0</showMessageOnError>
</createDirectory>
<showProgressDialog>
<title>Downloading files</title>
<abortOnError>0</abortOnError>
<explanation>Zcash Params file: sprout-proving.key</explanation>
<progressText>Zcash Params file: sprout-proving.key</progressText>
<showMessageOnError>0</showMessageOnError>
<title>Downloading Zcash Params file</title>
<actionList>
<httpGet>
<abortOnError>0</abortOnError>
@ -75,7 +79,10 @@
</ruleList>
</showProgressDialog>
<showProgressDialog>
<title>Downloading files</title>
<abortOnError>0</abortOnError>
<explanation>Zcash Params file: sprout-verifying.key</explanation>
<progressText>Zcash Params file: sprout-verifying.key</progressText>
<title>Downloading Zcash Params files</title>
<actionList>
<httpGet>
<abortOnError>0</abortOnError>

23
routes/shepherd.js

@ -21,6 +21,7 @@ var shepherd = express.Router();
// IGUANA FILES AND CONFIG SETTINGS
var iguanaConfsDirSrc = path.join(__dirname, '../assets/deps/confs');
var CorsProxyBin = path.join(__dirname, '../node_modules/corsproxy/bin/corsproxy');
// SETTING OS DIR TO RUN IGUANA FROM
// SETTING APP ICON FOR LINUX AND WINDOWS
@ -187,6 +188,28 @@ function herder(flock, data) {
});
});
}
if (flock === 'corsproxy') {
console.log('corsproxy flock selected...');
console.log('selected data: '+data);
pm2.connect(true,function(err) { //start up pm2 god
if (err) {
console.error(err);
process.exit(2);
}
pm2.start({
script: CorsProxyBin, // path to binary
name: 'CORSPROXY', //REVS, USD, EUR etc.
exec_mode : 'fork',
cwd: iguanaDir,
}, function(err, apps) {
pm2.disconnect(); // Disconnect from PM2
if (err) throw err
});
});
}
}

Loading…
Cancel
Save