def flush_repo(): """ removes the old repo in server and clones a new one. the configures the host. """ server = get_server() run("rm -rf %(project_name)s" % env) git.clone() server.setup()
def configure(): """ configures apache based on Host Type """ config = _AttrDict( wsgi = env.wsgi_path, home = env.home, root = env.path, admin = env.admin, server = ''.join(['www.',env.url]), venv_path = ''.join([env.home,'/.virtualenvs/',env.project_name]), errorlog = ''.join([env.log_path,'/error.log']), accesslog = ''.join([env.log_path,'/access.log']), ) # get server and set configuration files server = get_server() server.configure(config)