Skip to content

Commit 26e225b

Browse files
committed
move to using WebIDE repo, not NPM - as it pulls in loads of modules that we won't use
1 parent ee71da3 commit 26e225b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ git clone https://github.com/espruino/EspruinoHub
2828
cd EspruinoHub
2929
npm install
3030
# Optional: Install espruino-web-ide to allow the IDE to be used from the server
31-
npm install espruino-web-ide
31+
git clone https://github.com/espruino/EspruinoWebIDE
3232
# Give Node.js access to Bluetooth
3333
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
3434
```
@@ -38,6 +38,7 @@ sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
3838
**Note:** The instructions above assume you want to use Node-RED. If you don't
3939
then you can skip the Node-RED related parts.
4040

41+
4142
Usage
4243
-----
4344

lib/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ exports.init = function() {
171171

172172
// Handle Web IDE serving
173173
try {
174-
pathToWebIDE = require.resolve('espruino-web-ide');
174+
pathToWebIDE = require('path').resolve(__dirname, "../EspruinoWebIDE");
175175
if (require("fs").existsSync(pathToWebIDE))
176176
pathToWebIDE = pathToWebIDE.substr(0,pathToWebIDE.lastIndexOf("/"));
177177
} catch (e) {

0 commit comments

Comments
 (0)