Browse Source

Updated iguana.exe and pm2 bug fixes

ca333-dev
Satinder Grewal 8 years ago
parent
commit
d2f07ce6c4
  1. BIN
      assets/bin/win64/iguana.exe
  2. 0
      assets/bin/win64/nanomsg.dll
  3. 2
      main.js
  4. 4
      package.json
  5. 6
      routes/shepherd.js

BIN
assets/bin/win64/iguana.exe

Binary file not shown.

0
assets/bin/win64/nanomsg.dll

2
main.js

@ -176,7 +176,7 @@ function createWindow (status) {
return new Promise(function(resolve, reject) {
console.log('Closing Main Window...');
pm2.connect(function(err) {
pm2.connect(true,function(err) {
console.log('connecting to pm2...');
if (err) {
console.log(err);

4
package.json

@ -25,10 +25,12 @@
"bluebird": "^3.4.7",
"body-parser": "^1.15.2",
"corsproxy": "^1.5.0",
"electron": "^1.4.15",
"express": "^4.14.0",
"fix-path": "^2.1.0",
"fs-extra": "^1.0.0",
"md5": "^2.2.1",
"mkdirp": "^0.5.1",
"pm2": "^2.2.3"
"pm2": "^2.3.0"
}
}

6
routes/shepherd.js

@ -11,6 +11,7 @@ const express = require('express');
const md5 = require('md5');
const pm2 = require('pm2');
Promise = require('bluebird');
const fixPath = require('fix-path');
var setconf = require("../private/setconf.js");
@ -24,6 +25,7 @@ var iguanaConfsDirSrc = path.join(__dirname, '../assets/deps/confs');
// SETTING OS DIR TO RUN IGUANA FROM
// SETTING APP ICON FOR LINUX AND WINDOWS
if (os.platform() === 'darwin') {
fixPath();
var iguanaBin = path.join(__dirname, '../assets/bin/osx/iguana');
var iguanaDir = process.env.HOME + '/Library/Application Support/iguana';
var iguanaConfsDir = iguanaDir + '/confs';
@ -144,7 +146,7 @@ function herder(flock, data) {
})
pm2.connect(function(err) { //start up pm2 god
pm2.connect(true,function(err) { //start up pm2 god
if (err) {
console.error(err);
process.exit(2);
@ -166,7 +168,7 @@ function herder(flock, data) {
console.log('komodod flock selected...');
console.log('selected data: '+data);
pm2.connect(function(err) { //start up pm2 god
pm2.connect(true,function(err) { //start up pm2 god
if (err) {
console.error(err);
process.exit(2);

Loading…
Cancel
Save