ServerDjangoUwsgi.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:ezhost 作者: zhexiao 项目源码 文件源码
def install_nginx(self):
        if self.args.force or prompt(red(' * Install Nginx (y/n)?'), default='y') == 'y':
            self.common_install_nginx()

            # nginx configuration
            put(StringIO(self.django_uwsgi_with_nginx), '/etc/nginx/sites-enabled/default', use_sudo=True)

            # restart server
            sudo('service nginx restart')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号