Skip to content

Commit

Permalink
Merge pull request #37 from polonel/develop
Browse files Browse the repository at this point in the history
Hotfix for #34 & #36
  • Loading branch information
polonel committed Nov 10, 2017
2 parents af1940d + 128406d commit e233f51
Show file tree
Hide file tree
Showing 73 changed files with 398 additions and 7,904 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Built on [Node.JS](http://nodejs.org) and [MongoDB](http://www.mongodb.org).

#### Trudesk Virtual Appliance
The Trudesk Virtual Appliance can quickly deploy to both Virtual Box as well as VMWare. Visit the appliance documentation for more information.
[Trudesk Virtual Appliance Documentation](http://www.trudesk.io/docs/install_virtual_appliance.html)
[Trudesk Virtual Appliance Documentation](http://www.trudesk.io/v1/guide/installation.html#Virtual-Appliance)

### Documentation
___Docs are still in development___
Expand Down
29 changes: 2 additions & 27 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ winston.err = function (err) {
};

process.on('message', function(msg) {
if (msg == 'shutdown') {
if (msg === 'shutdown') {
console.log('Closing all connections...');

if (ws.server)
ws.server.close();

process.exit(0);
}
});
Expand Down Expand Up @@ -108,10 +109,6 @@ if (nconf.get('install') || !configExists && !process.env.HEROKU) {

if (!nconf.get('setup') && !nconf.get('install') && !nconf.get('upgrade') && !nconf.get('reset') && configExists) {
start();
} else if (nconf.get('setup') || nconf.get('install') || !configExists && !process.env.HEROKU) {
setup();
} else if (nconf.get('upgrade')) {
//upgrade();
}

function loadConfig() {
Expand Down Expand Up @@ -143,28 +140,6 @@ function start() {
});
}

function setup() {
loadConfig();

if (nconf.get('setup')) {
winston.info('Starting trudesk setup....');
} else {
winston.warn('Configuration not found!!! Starting trudesk setup....');
}

var install = require('./src/install');

install.setup(function(err) {
if (err) {
winston.error('There was a problem completing trudesk setup: ', err.message);
} else {
winston.info('trudesk Setup Completed. Run \'./trudesk start\' to manually start your trudesk server.');
}

process.exit();
})
}

function dbCallback(err, db) {
if (err) {
return start();
Expand Down
26 changes: 0 additions & 26 deletions mobile/config.xml

This file was deleted.

95 changes: 0 additions & 95 deletions mobile/confighelper.js

This file was deleted.

95 changes: 0 additions & 95 deletions mobile/cordova-js-src/confighelper.js

This file was deleted.

114 changes: 0 additions & 114 deletions mobile/cordova-js-src/exec.js

This file was deleted.

Loading

0 comments on commit e233f51

Please sign in to comment.