mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Make sure frontend dir exists in deploy command.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user