Make sure frontend dir exists in deploy command.

This commit is contained in:
Antoine Nguyen
2021-06-28 15:25:04 +02:00
parent 0fe8aa61c7
commit 210315f69c
+2
View File
@@ -270,6 +270,8 @@ class DeployCommand(Command):
base_frontend_dir = os.path.join(
os.path.dirname(__file__), "../../../frontend/dist/")
if not os.path.exists(base_frontend_dir):
return
frontend_target_dir = "{}/frontend".format(parsed_args.name)
shutil.copytree(base_frontend_dir, frontend_target_dir)