@@ -142,7 +142,7 @@ async def enable_cors(request, response):
142
142
143
143
async def start_vue_dev_server ():
144
144
await asyncio .create_subprocess_shell (
145
- "npm run dev" , stdout = sys .stdout , stderr = sys .stderr , cwd = MAGMA_PATH
145
+ "npm run dev" , stdout = sys .stdout , stderr = sys .stderr , cwd = MAGMA_PATH , shell = True
146
146
)
147
147
logging .info ("VueJS development server is live." )
148
148
@@ -256,15 +256,15 @@ def list_str(values):
256
256
if args .uiDevHost :
257
257
if not os .path .exists (f"{ MAGMA_PATH } /dist" ):
258
258
logging .info ("Building VueJS front-end." )
259
- subprocess .run (["npm" , "run" , "build" ], cwd = MAGMA_PATH , check = True )
259
+ subprocess .run (["npm" , "run" , "build" ], cwd = MAGMA_PATH , check = True , shell = True )
260
260
logging .info ("VueJS front-end build complete." )
261
261
app_svc .application .on_response_prepare .append (enable_cors )
262
262
263
263
if args .build :
264
264
if len (os .listdir (MAGMA_PATH )) > 0 :
265
265
logging .info ("Building VueJS front-end." )
266
- subprocess .run (["npm" , "install" ], cwd = MAGMA_PATH , check = True )
267
- subprocess .run (["npm" , "run" , "build" ], cwd = MAGMA_PATH , check = True )
266
+ subprocess .run (["npm" , "install" ], cwd = MAGMA_PATH , check = True , shell = True )
267
+ subprocess .run (["npm" , "run" , "build" ], cwd = MAGMA_PATH , check = True , shell = True )
268
268
logging .info ("VueJS front-end build complete." )
269
269
else :
270
270
logging .warning (
0 commit comments