diff --git a/cli/__pycache__/controller.cpython-36.pyc b/cli/__pycache__/controller.cpython-36.pyc deleted file mode 100644 index 9d4876ca..00000000 Binary files a/cli/__pycache__/controller.cpython-36.pyc and /dev/null differ diff --git a/cli/__pycache__/core.cpython-36.pyc b/cli/__pycache__/core.cpython-36.pyc deleted file mode 100644 index 85be9f06..00000000 Binary files a/cli/__pycache__/core.cpython-36.pyc and /dev/null differ diff --git a/cli/__pycache__/model.cpython-36.pyc b/cli/__pycache__/model.cpython-36.pyc deleted file mode 100644 index 28684080..00000000 Binary files a/cli/__pycache__/model.cpython-36.pyc and /dev/null differ diff --git a/cli/controller.py b/cli/controller.py index 5b9be3e4..1b58605d 100644 --- a/cli/controller.py +++ b/cli/controller.py @@ -45,7 +45,7 @@ class Create: def setEnv(self): '''set the usable port for application''' fileop=model.FileOp() - print(fileop.fileToJson('./drupal/.env')) + print(fileop.fileToJson(self.folder+'/.env')) pass def upRepo(self): diff --git a/cli/model.py b/cli/model.py index 74896325..a609b3be 100644 --- a/cli/model.py +++ b/cli/model.py @@ -55,6 +55,8 @@ class FileOp: def fileToJson(self, path: str, remark: Optional[str] = "#", separate: Optional[str] = "="): ''' convert file to Json ''' + print(path) + dict = {} with open(path) as fh: for line in fh: diff --git a/cli/stackhub.py b/cli/stackhub.py index a7a002dc..9cd10a1a 100644 --- a/cli/stackhub.py +++ b/cli/stackhub.py @@ -18,8 +18,8 @@ def create(app_name: str, project_name: Optional[str] = None): '''create one application''' create = controller.Create(app_name, project_name) create.downRepo() - create.upRepo() create.setEnv() + create.upRepo() create.printResult() @app.command()