PrivateSky / swarmcore

Swarm 2.0 implementation
Other
15 stars 4 forks source link

Launcher.js complains about watch section #5

Open jwulf opened 9 years ago

jwulf commented 9 years ago
[$] node etc/adapters/Launcher.js 

Watch sections missing or not an array. Exiting... 
jwulf commented 9 years ago

In Launcher.js, I changed this:

// var watch = config.watch;
var watch = config.autorun;

And then:

lib/SwarmCore.js was not exporting getSwarmFilePath.

Added this to SwarmCore.js after the function is defined:

exports.getSwarmFilePath = getSwarmFilePath;

jwulf commented 9 years ago

I used the config from the SwarmESB project, and got a complaint from Launcher.js at line 69.

Swarmcore.js does not export getCorePath, so I added the second line below to Swarmcore.js:

var getSwarmESBCorePath = require("../index.js").getCorePath;
exports.getCorePath = getSwarmESBCorePath;

Then it runs.