Skip to content

Commit

Permalink
work-arounds for node-gyp&node-mbus
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Nilsson committed Apr 20, 2018
1 parent 2bbda52 commit bdd82ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ environment:
NODE_PATH: $SNAP/lib/node_modules:$SNAP_USER_DATA/node_modules
NPM_CONFIG_CACHE: $SNAP_USER_DATA
GYP_CONFIG_DIR: $SNAP_USER_DATA/.gyp
MSB_NODEPATH: $SNAP_USER_DATA/dummy
HOME: $SNAP_USER_DATA
NPM_CONFIG_DEVDIR: $SNAP_USER_DATA/.gyp

parts:
node:
Expand All @@ -78,7 +81,7 @@ parts:
- libdb-dev
- modemmanager
- vim
node-packages: [serialport]
node-packages: [serialport,node-mbus]
stage:
- -usr/lib/x86_64-linux-gnu/libc.so
- -usr/lib/x86_64-linux-gnu/libm.so
Expand Down
4 changes: 2 additions & 2 deletions start.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ function startWithoutDebug() {
var debugHost;
var fixedExecArgv = [];
if (cluster.isMaster) {
var worker = cluster.fork();
var worker = cluster.fork(process.env);

cluster.on('exit', function (worker, code, signal) {
worker = cluster.fork();
worker = cluster.fork(process.env);

// var debugMessage = "signal: " + signal + " code: " + code;
// console.log(util.padRight(" EXIT CALLED", maxWidth, ' ').bgGreen.white.bold);
Expand Down

0 comments on commit bdd82ad

Please sign in to comment.