D
D
Dmitry Vyatkin2015-12-08 02:35:29
Django
Dmitry Vyatkin, 2015-12-08 02:35:29

Do they use virtualenv in production?

If so, what's the point and tell me how to run uwsgi in the background in virtualenv? noup doesn't work.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
un1t, 2015-12-08
@dim137

Use. What does it mean what's the point, I have many projects on the same servers, they need different versions of the libraries. There are old projects that are still working on django 1.4, and no one is going to update them, there are new ones that are on newer versions.
uwsgi is installed globally via apt-get and run via config, this is the correct way. Through nohup it is also possible, but not necessary.
myproject.ini

[uwsgi]
plugins=python34
virtualenv=/home/myuser/myproject/venv3
module=project.wsgi
callable=application
pythonpath=/home/myuser/myproject
chdir=/home/myuser/myproject
processes=16

S
sim3x, 2015-12-08
@sim3x

In production, uwsgi is installed from rap and is not connected to virtualenv in any way.
What does it mean that nohup does not work?
BUTuwsgi conf.ini &

S
skorpix, 2015-12-17
@skorpix

I will add from myself about the meaning of use.
On one server, the production and test server are running to check the changes. First, you upload the changes to the test one, look, check (I think it’s clear that the changes may also apply to the installation of more recent versions), if everything is ok, you roll it out to production.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question