推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
Yuxiaoy
V2EX  ›  Python

使用 flask-apscheduler 定时更新数据库,本地运行通过,部署到 heroku 失败

  •  
  •   Yuxiaoy · Aug 26, 2019 via Android · 3655 views
    This topic created in 2593 days ago, the information mentioned may be changed or developed.

    直接部署到 heroku 失败了,也尝试添加 clock 进程,好像也没有用,有了解的吗

    2 replies  •  2019-08-27 15:38:30 +08:00
    tfdetang
        1
    tfdetang  
       Aug 26, 2019
    是通过 uwsgi 的方式部署的吗? uwsgi 的配置文件里 有没有加 enable-threads = true
    Yuxiaoy
        2
    Yuxiaoy  
    OP
       Aug 27, 2019 via Android
    @tfdetang 我用 gunicorn 部署的,也需要设置吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   761 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:24 · PVG 05:24 · LAX 14:24 · JFK 17:24
    ♥ Do have faith in what you're doing.