vereseproject / verese

Verese - a micro-credit web application
http://verese.net
BSD 3-Clause "New" or "Revised" License
34 stars 12 forks source link

Install a debian server #6

Open glogiotatidis opened 12 years ago

glogiotatidis commented 12 years ago

Install a debian server with:

kosfar commented 12 years ago

Hi all,

I think I can manage this one. Maybe it is necessary to describe in more details the operational needs that this server will support (here, at wiki, next meeting?), because based on the listed software I assume that special care for security should be given too.

glogiotatidis commented 12 years ago

Hi kosdar,

Thanks for picking this one up!

The server will support our development needs and temporary a production instance. We need to run dev, stage, production instances on this server thus the listed software. I can immediately give you access to our mediatemple server to get started with a the basic configuration as a first step and then we setup the django instances.

More questions? I'm in #verese on freenode if you prefer live chat ;)

Sounds good?

glogiotatidis commented 12 years ago

Oops, that's kosfar sorry for the typo ;)

kosfar commented 12 years ago

No probs. I am in #verese channel right now, we may continue from there. Please check if you receive my messages!

kosfar commented 12 years ago

What we have till now:

kosfar commented 12 years ago

Hello everyone,

nginx, supervisor and gunicorn and their dependencies are now installed. All packages were installed through debian apt-get. Nothing configured so far regarding the above software because I want a little help to understand the way that nginx and gunicorn will "talk" with the three django instances. So two questions here:

Also installed monit. It monitors postfix and postgresql so far. Nginx and supervisord are on the list too.

glogiotatidis commented 12 years ago

Since we run different python environments of the same server I suggest that you remove the packages gunicorn and that we install it in each virtualenv.

Here is the main concept:

In the web you can find numerous nginx + supervisord + gunicorn examples. I'm not proposing one because they follow different paths to implement more or less the same thing. I'll let you find what fits you best. If you care to find out how I did it myself, you can look into /old directory of the server. There you can find nginx, supervisor and gunicorn configurations.

Hope that helps!

Keep rocking, -g

kosfar commented 12 years ago

Sounds good. I will have a look at the /old folder and I will keep you informed about my progress.