Ejemplo n.º 1
0
 def __post_extract_handler(self):
     #remove *.pyc files.
     remove_pyc_files(self.project_path)
     #restart uwsgi service.
     restart_uwsgi(self)
Ejemplo n.º 2
0
 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)