def syncServer(self, path): LOG.info("Sync server...") command = utils.vagrant_cd(os.path.dirname(path)) + " && " + \ "python manage.py syncdb --noinput && python manage.py migrate --noinput" return utils.vagrant_run_command(command) ## DEF ## CLASS
def runServer(self, path): LOG.info("Run server...") vm_manage_file = utils.to_vm_path(path) command = utils.vagrant_cd(os.path.dirname(path)) + " && " + \ "nohup python manage.py runserver 0.0.0.0:8000 & sleep 1" return utils.vagrant_run_command(command)