bonescript is broken
Created by: mvduin
Bone101 and the BoneScript documentation try to load http://HOST/bonescript.js
(where HOST is whatever you fill into the form, or 192.168.7.2 by default). However, on the latest IoT image this results in a 404 error, thus the ability to run examples does not function.
The getting started guide's networking section likewise tries (and fails) to load http://HOST/bonescript.js
. It also tries to load http://HOST:8000/bonescript.js
, which causes bonescript.service to be socket-activated on my beaglebone. However, it seems to fail to adopt the socket provided by systemd and instead tried to open its own socket, which fails (EADDRINUSE).
I haven't tried to debug this issue, but I did notice that the "systemd" module bonescript uses for socket activation does not support nodejs 0.11.0 or later (according to its package.json), presumably because of the hideous hacks it does (uses a nodejs-internal binding and globally patches net.Server.prototype.listen
). You may want to consider replacing it by my node-sd-daemon library, which supports socket activation and a lot more, works on all recent nodejs versions (afaik) and is actually maintained. I haven't gotten around to pushing it to npm yet, but you can just use the git version directly (npm install github:dutchanddutch/node-sd-daemon
).