推荐学习书目
› 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
biexiawo
V2EX  ›  Python

在虚拟环境中部署 flask 应用,执行 sudo supervisorctl -c supervisor.conf start all 命令后报错: myapp: ERROR (no such file)

  •  
  •   biexiawo · Apr 3, 2016 · 3455 views
    This topic created in 3826 days ago, the information mentioned may be changed or developed.
    在虚拟环境中部署 flask 应用,我的 supervisor.conf 文件添加如下代码, 执行 sudo supervisorctl -c supervisor.conf start all 命令后报错: myapp: ERROR (no such file) 我的 myapp.py 脚本就是放在 /home/koing/myproject 中了啊

    [program:myapp]
    command=/home/koing/myproject/venv/bin/gunicorn -w4 -b0.0.0.0:2170 myapp:app
    directory=/home/koing/myproject
    startsecs=0
    stopwaitsecs=0
    autostart=false
    autorestart=false
    stdout_logfile=/home/koing/myproject/log/gunicorn.log ; log 日志
    stderr_logfile=/home/koing/myproject/log/gunicorn.err
    biexiawo
        1
    biexiawo  
    OP
       Apr 3, 2016 via Android
    已解决!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2564 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 02:10 · PVG 10:10 · LAX 19:10 · JFK 22:10
    ♥ Do have faith in what you're doing.