fabfile.py 文件源码

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

项目:meetup-facebook-bot 作者: Stark-Mountain 项目源码 文件源码
def create_service_file():
    service_file_config = {
        'user': env.user,
        'work_dir': PROJECT_FOLDER,
        'env_bin_dir': VENV_BIN_DIRECTORY,
        'uwsgi_path': os.path.join(VENV_BIN_DIRECTORY, 'uwsgi'),
        'app_ini_path': INI_FILE_PATH
    }
    upload_template(
        filename='deploy_configs/meetup-facebook-bot.service',
        destination=os.path.join('/etc/systemd/system/', UWSGI_SERVICE_NAME),
        context=service_file_config,
        use_sudo=True
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号