On 8/01/2015 9:45 PM, Anssi Kääriäinen wrote:
For a long time I have been battling with the following problem: how to
deploy Django in an easy, maintainable, secure and reliable way for
small Django applications. The applications I write are mainly very low
traffic, and often they are coded in a couple of days. Unfortunately the
hardest part of producing these applications has been deployment. A big
part of the problem is that I have to work with RHEL6 based servers, and
those tend to have old libraries.
The solution I am currently using is a nice little setup helper I wrote,
django-dockerfile: https://github.com/akaariai/django-dockerfile. The
idea is that you write a environment file for each server you want to
deploy into, and after that everything happens automatically through
usage of fab.
Have you seen Mezzanine fab deployment? Ken Bolton has blogged about it ...
http://bscientific.org/blog/mezzanine-fabric-git-vagrant-joy/
Mike
The solution works great for me even if there is still a lot to do. For
example, usage of the fig package could make the code more robust, and
allow for multi-server installations.
The main reason I am writing here on django-users is that I would like
to see an easy way to deploy small Django applications. For large
applications it seems OK to just build up your own deployment strategy,
but for small applications it is too easy to end up doing the deployment
in a hackish way where for example deploying the application isn't
scripted, and each application's deployment strategy varies slightly.
I am looking for a way to deploy Django with at least these features:
- Allows one-command deployment directly from Git to Docker-enabled
server
- Easy to use and get started
- Doesn't use development server, or SQLite as database.
- Does care for security
- Media and static files served properly (note: CDN is overkill for
my projects!)
- Allows one to define secrets and other environment variables per
installation
- Preferably: logging, backup and restore thought out
The django-dockerfile package has the above features except for logging,
backup and restore.
So, if there already exists something that has the above features
implemented, then please tell me. If not, I am looking for interested
developers to participate in building a tool for the small Django
project deployment use case. The django-dockerfile package could be used
as basis for the work, but using some other package or just starting
from scratch are also options. Just writing a blog post that has
information about an example Django deployment with every aspect of the
above feature list covered could be enough.
- Anssi
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/eeb24be3-1f3d-4d4e-8ba0-7a476871c43a%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/eeb24be3-1f3d-4d4e-8ba0-7a476871c43a%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/54AE67E5.3050704%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.