M
M
mikemoix2015-09-29 09:39:35
Django
mikemoix, 2015-09-29 09:39:35

Setting up uwsgi under ubuntu?

I set up uwsgi on a server under ubuntu. There is a project under django + uwsgi.ini that runs it. How do I set up uwsgi so that I can run something like /etc/init.d/uwsgi start mysite1?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Astrikov, 2015-10-01
@astrikovd

As already said, use uwsgi emperor mode. You can enable/disable sites by adding/removing references to uwsgi.ini in /etc/uwsgi/vassals.
You can read more here - www.nginxtips.com/how-to-setup-django-with-uwsgi-a...
The process for CentOS is described, but there is not much difference.

B
bromzh, 2015-09-29
@bromzh

Either use emperor-mode in uwsgi or use supervisor. Everything is in the uwsgi offdocs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question