python-dirbtuves / ubuntu.lt

ubuntu.lt comunity forum based on Misago.
GNU Affero General Public License v3.0
3 stars 0 forks source link

Create Ansible playbook for deployment #6

Open sirex opened 9 years ago

sirex commented 9 years ago

What you need to do is to fork https://github.com/akllt/infrastructure and copy for example websites/pylab.lt to websites/ubuntu.lt and replace everything related to pylab to ubuntu analog.

When you finish, just create pull request.

Implements #1.

narun4sk commented 9 years ago

What about custom Ansible playbook ? Or copy-paste from the akllt/infrastructure is a must? Why if so?

sirex commented 9 years ago

Not a must. The only reason to copy-paste, because these Ansible playbooks already does what we need - Apache/mod_wsgi setup, Django with PostgreSQL.

Why would you want to rewrite this again?

sirex commented 9 years ago

Another reason, since server where production deployment will happens have many projects, so I would like to keep some consistency between those projects. For example all projects are stored under /opt/<project name> and so on.

Also 80 port is taken by Apache, so it has to be Apache/mod_wsgi or at least Apache/<proxy to other wsgi server>.

narun4sk commented 9 years ago

Another reason, since server where production deployment will happens have many projects, so I would like to keep some consistency between those projects. For example all projects are stored under /opt/ and so on.

Also 80 port is taken by Apache, so it has to be Apache/mod_wsgi or at least Apache/.

OK, now it makes more sense.

I prefer Nginx to Apache and have more experience with the former. Further Nginx is uwsgi aware in it's guts. I'm not saying that this makes it better, it's just the way it is.

Well, then it will be a copy-paste...

sirex commented 9 years ago

I also prefer Nginx + uwsgi (I use that on my own server), but I'm responsible just for few projects on AKL server, not for the whole server and it's services. So it has to be Apache + mod_wsgi.