Using forever.js with Python

前端 未结 3 1286
花落未央
花落未央 2021-01-31 10:43

Two questions:

  • Is there a Python equivalent to forever.js to run a Python process in the background without requiring sudo?
  • Is it possible to use forever.
3条回答
  •  忘掉有多难
    2021-01-31 11:23

    Using python 3 with Flask to run with forever.js, here is my build process

    python3 -m venv venv
    source venv/bin/activate
    sudo -H pip3 install -r requirements.txt
    FLASK_APP=app.py forever start -c python3 app.py --port=5001
    

提交回复
热议问题