From 075b264d21d89f9e436220540445224b63347dd1 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Wed, 27 May 2020 10:54:34 +0100 Subject: [PATCH] bugfix: create app not creating dirs --- packages/server/src/api/controllers/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/application.js b/packages/server/src/api/controllers/application.js index c9c072fc2b..63422c468a 100644 --- a/packages/server/src/api/controllers/application.js +++ b/packages/server/src/api/controllers/application.js @@ -54,7 +54,7 @@ exports.create = async function(ctx) { } await instanceController.create(createInstCtx) - if (env.NODE_ENV === "production") { + if (ctx.isDev) { const newAppFolder = await createEmptyAppPackage(ctx, newApplication) await runNpmInstall(newAppFolder) }