Skip to content

Commit

Permalink
fix(root): make it work on clevercloud because CC_RUN_COMMAND did not…
Browse files Browse the repository at this point in the history
… worked -__-
  • Loading branch information
FGRibreau committed Dec 13, 2017
1 parent 7a4b8f1 commit 2cbe938
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions launcher.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';
const spawn = require('child_process').spawn;
const child = spawn('node', [process.env.NODE_FILE], {
cwd: __dirname,
stdio: 'inherit',
env: process.env,
});

child.on('close', function(code) {
process.exit(code);
});
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"private": true,
"main": "launcher.js",
"devDependencies": {
"lerna": "^2.5.1"
},
"scripts": {
"start": "node launcher.js",
"postinstall": "lerna bootstrap"
}
}
2 changes: 1 addition & 1 deletion packages/blockprovider-runner/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ app.use('/static', express.static('static'));

// start to listen to http
app.listen(config.port, () => {
console.log(`🎉 BlockProvider Runner listening on port ${config.port}!`);
console.log(`🎉 BlockProvider Runner listening on port ${config.port}!`);
console.log(`Check out blockprovider-runner readme for usage 😉`);
});

0 comments on commit 2cbe938

Please sign in to comment.