Skip to content

Commit a5f15dd

Browse files
committed
fix terminal path
1 parent bb66c5f commit a5f15dd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//Change offline in /config.
44
//Change github in /config.
55
exports.editor = {
6-
"port": 3000,
6+
"port": 80,
77
"version": "0.3.12",
88
"version_url": "https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/release/version.txt"
99
};

server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@ app.post('/terminals', function (req, res) {
100100
rows = parseInt(req.query.rows),
101101
cwd = req.query.cwd;
102102

103+
console.log(cwd);
104+
103105
var term = pty.spawn(process.platform === 'win32' ? 'cmd.exe' : 'bash', [], {
104106
name: 'xterm-color',
105107
cols: cols || 80,
106108
rows: rows || 24,
107-
cwd: path.resolve(__dirname + cwd),
109+
cwd: path.resolve(cwd),
108110
env: process.env
109111
});
110112

0 commit comments

Comments
 (0)