Ejemplo n.º 1
0
 def __compile_server(self) -> str:
     """
     Move the required task files to a specific directory to be deployed to
     heroku directly. Return the location that the packaged files are
     now prepared in.
     """
     print("Building server files...")
     heroku_server_development_root = self.__get_build_directory()
     os.makedirs(heroku_server_development_root)
     heroku_server_development_path = build_router(
         heroku_server_development_root, self.task_run)
     return heroku_server_development_path
Ejemplo n.º 2
0
 def prepare(self) -> str:
     """Mark the preparation call"""
     self.server_dir = build_router(self.build_dir, self.task_run)
     return self.server_dir