Hi,

I use gunicorn in my venv

I have quite few venv that run gunicorn.

I would like to reuse gunicorn for other venv

I launch my web application like this

#PWD = venv dir
source ./bin/activate
gunicorn A_WebApp:app
#A_WebApp is my python file A_WebApp.py

I supposes that gunicorn is a shell program ? if yes I should use $PATH ?
or gunicorn is a Python program only ? and then what I should do to use gunicorn in another venv ?

Thanks.

  • SpongeB0B@programming.devOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Thank you ! it works !

    Actually this is working :

    path/to/venv/bin/gunicorn A_Web_App:app
    

    Some other poster, claim it’s dirty… but which problems could it generate ? (if any)

    Thanks all !!!