Skip to content

Commit

Permalink
fix(playground): no such file or directory, scandir 'dashboard-app/src'
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Apr 5, 2019
1 parent acd712f commit 64ec481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-server-core/core/DevServer.js
Expand Up @@ -82,7 +82,7 @@ class DevServer {

app.get('/playground/dashboard-app-files', catchErrors(async (req, res) => {
this.cubejsServer.event('Dev Server Get Dashboard App Files');
if (!await fs.pathExists(dashboardAppPath)) {
if (!await fs.pathExists(dashboardAppPath) || this.createReactAppInit) {
if (!this.createReactAppInit) {
this.cubejsServer.event('Dev Server Create Dashboard App');
this.createReactAppInit = executeCommand('npx', ['create-react-app', dashboardAppPath]);
Expand Down

0 comments on commit 64ec481

Please sign in to comment.