Platoform Running with node modules loaded at platform root
This commit is contained in:
1 parent
61dbbf4e53
commit
d2811cc422
9 files changed
+560
-3929
No files matched your search
+9
-3
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
The Superalgos Platform is a software for algo-traders:
|
||||
|
||||
This module represents the Nodejs command that users have to start the Platform App..
|
||||
|
||||
*/
|
||||
|
||||
if (
|
||||
process.argv.includes("help") ||
|
||||
@@ -79,12 +85,12 @@ console.log('')
|
||||
console.log('')
|
||||
|
||||
const fs = require('fs')
|
||||
const path = './Platform/node_modules'
|
||||
const path = './node_modules'
|
||||
if ( fs.existsSync(path) ) {
|
||||
|
||||
try {
|
||||
const { fork } = require('child_process')
|
||||
fork('./Platform/PlatformApp.js', process.argv, options)
|
||||
fork('./PlatformRoot.js', process.argv, options)
|
||||
} catch (err) {
|
||||
console.log('')
|
||||
console.log('Fail to create Superalgos Platform Client Process.')
|
||||
@@ -94,7 +100,7 @@ if ( fs.existsSync(path) ) {
|
||||
}
|
||||
} else {
|
||||
console.log('')
|
||||
console.log('ERROR: node_modules does not exist. Try running node setup to solve this issue. Then try again. You can finded detailed instructions for this in the ReadMe.')
|
||||
console.log('ERROR: node_modules does not exist. Try running "node setup" to solve this issue. Then try again. You can finded detailed instructions for this in the ReadMe.')
|
||||
console.log('')
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user