def configure_web_server():
"""
Makes sure that the newly uploaded deployment is linked to the right
place in the filesystem and the webserver restarts.
"""
require('hosts', provided_by=[live])
run('rm -rf /var/www/%(sitename)s' % env)
run('ln -s /var/www/%(path)s /var/www/%(sitename)s' % env)
评论列表
文章目录