[Flask] Deploying Flask on Debian

Alex Hall ahall at autodist.com
Thu May 5 14:36:08 EDT 2016


Sorry for all the messages, but one more thing about UWSGI. There's one
item in the configuration file sample I found that I don't understand:

venv = /var/www/mysite/.env

I can't find this venv item anywhere so far, and the author of the post
where I found it never explained what it was for. Does it point to a
special folder used during runtime? Does that folder have to exist first?
Does this point to my app's folder, like chdir does? I don't have a .env
folder, and I'm wondering if that's my problem. I don't want to make one,
though, until I better understand what this venv item is actually trying to
do.

On Thu, May 5, 2016 at 2:24 PM, Edward Wingate <edwingate8 at gmail.com> wrote:

> > At the risk of going a bit off topic, I made my Nginx and UWSGI
> > configuration files according to this guide:
> > http://www.markjberger.com/flask-with-virtualenv-uwsgi-nginx/
>
> Here is another guide based on supervisor instead of systemd startup I
> followed a while back:
>
> http://ewong.me/creating-and-deploying-flask-app-using-uwsgi-nginx-virtualenv-and-supervisor/
>
> Maybe you can use bits of it to get your setup working.
>



-- 
Alex Hall
Automatic Distributors, IT department
ahall at autodist.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20160505/0b0c825b/attachment.html>


More information about the Flask mailing list