What is the best way to start a django project in aws?

How to deploy and run the project. There are many tools in this space. What to use and why?

  • Supervisor
  • Gunocorn
  • Ngnix
  • the cloth
  • Boto
  • Pip
  • Virtualenv
  • Load balancers
+5
source share
3 answers

It depends on your configuration. We use the following stack for our environment on Rackspace, but you can configure the same on AWS with EC2 instances.

  • Ubuntu 11.04
  • Varnish (in memory cache) to avoid disk search
  • NginX for static server content
  • Apache Dynamic Content for Server (MOD-WSGI)
  • Python 2.7.2 with Django
  • Jenkins for our continuous assembly
  • GIT for version control
  • Fabric for deployment.

, , , , GIT push . . ​​Python, , Fabric Apache, , Apache Python.

, .

+11

uWSGI + Nginx (, ), pip virtualenv , . git . Jenkins . AWS (ELB) EC2 - . django-storages s3, , .

However, this slightly depends on your administrative overhead. If you are looking for something clean and easy to deploy and scale, I would give up the entire AWS EC2 stack, use Heroku as the front end and s3 for your static files. This saves the administrator time to save boxes and allows you to focus on dev.

+2
source

All Articles