Skip to content

Commit

Permalink
fix(playground): Dashboard doesn't work on Windows
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
paveltiunov committed Apr 24, 2019
1 parent 256be01 commit 48a2ec4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cubejs-server-core/core/DevServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ class DevServer {
this.cubejsServer.event('Dev Server App File Write');
const { files } = req.body;
await Promise.all(
files.map(file => path.join(...[dashboardAppPath].concat(file.fileName.split('/'))))
files.map(file => fs.writeFile(
path.join(...[dashboardAppPath].concat(file.fileName.split('/'))),
file.content
))
);
res.json({ files });
}));
Expand Down

0 comments on commit 48a2ec4

Please sign in to comment.