After pip has installed uWSGI, there is no / etc / uwsgi / directory - how can I use applications?

I used apt-get install uwsgi to install uWSGI for my Django application. Today I realized that I need a function that was not available before uWSGI 1.1, and Ubuntu 12.04.1 has nothing after 1.0.x, at least according to my attempt to apt-get install uwsgi=1.1 . So, I used:

 pip install http://projects.unbit.it/downloads/uwsgi-lts.tar.gz 

After that, I get a message about the assignment of /usr/local/bin/uwsgi to run the program. I am not a guru when it comes to compiling from source, but I understand that when you do this, nothing will be changed in the /etc/ directory. It's right? If not, why don't I have a directory /etc/uwsgi/ and, more specifically, a directory /etc/uwsgi/apps-enabled/ ? Should I just create directories when installing uWSGI from source? I did not dare to do this, given that there is no mention in the documents (I do not want something to work accidentally, etc.).

+6
source share
2 answers

Sorry for this very late answer, but maybe this will help people who find this answer in the future:

To get /etc/uwsgi , etc., you need to install the uwsgi package from Debian or Ubuntu (no matter what you use) by running aptitutde install uwsgi . However, this will probably install an ancient version of uwsgi by default! The uwsgi binary is placed in /usr/bin/uwsgi when you install uwsgi in this way.

To get the latest version, also install uwsgi using pip with pip install -U uwsgi , which (at least on my Ubuntu system) will put the uwsgi binary in /usr/local/bin/uwsgi , and then do the following:

cd /usr/bin/

mv uwsgi uwsgi-old

ln -s /usr/local/bin/uwsgi uwsgi

Alternatively: edit the uwsgi init script and edit DAEMON="/usr/bin/uwsgi" accordingly.

Et voila: "debianism" (full init scripts, etc.) and the latest uwsgi binary!

+25
source

/ etc / uwsgi and friends are "debianism." The uWSGI project is associated with the sysadmin style, so if you like the / etc / uwsgi approach, just create a directory, drop the configuration files in it and run UWSGI Emperor to manage the instances.

+6
source

All Articles