def __post_extract_handler(self): #remove *.pyc files. remove_pyc_files(self.project_path) #restart uwsgi service. restart_uwsgi(self)
def restart(self): if not self.fast: #update the domains. with cd(self.project_path): run("echo \"%s\" > domains.txt" % "\n".join(self.hosts)) restart_uwsgi(self)