3 ms·
So how do you "relatively simply" deploy python on the server? you have to know and work with pip, virtualenv, uwsgi, nginx, supervisor. Much more painful than
by spdionis 10y ago
So how do you "relatively simply" deploy python on the server? you have to know and work with pip, virtualenv, uwsgi, nginx, supervisor. Much more painful than composer, nginx and php-fpm. Using apache is even easier.
Disclaimer: maybe I'm doing something terribly wrong? I don't have much experience deploying python. If so please tell me.
- nhumrich 10y agoThe best way is with docker. But besides that, you usually only have to mess with uwsgi, and nginx once. You don't need virtualenv if you only have one python app on the server. You could however deploy a virtualenv, I have seen some people use the virtualenv as a large distributable, and just dropped that on the box with the code. But ultimately, if your not using docker, you could be using PAAS, AWS Elastic Beanstalk, Heroku, Google App engine, they all do this for you.
- spdionis 10y agoI was thinking about the case of a simple digitalocean/ec2 VPS, not a PAAS. In the end I realized that I don't need virtualenv and that makes things much simpler, except that every single blogpost/tutorial/info for beginners suggested using virtualenv and I was lost.