I have few simple django-based sites and I their number increasing all the time. Every time I deploy the site I need to:
- Manually create bash-script that start Django FastCGI server.
- Adding it to etc/init.d to run after server reboot.
- Creating separate config for Lighttpd to work with FastCGI server and serving static files.
I know how to do it, but I’d like to automate this task if possible.
My dream setup process could look like this:
- I have a folder somewhere in my /var/ directory. For example: /var/django/
- I clone one of my projects to the subdirectory of this directory.
- After that happening one of the following: Some software automatically detects folder creation, and creates all necessary configs and then restart Lighttpd. OR I manually run some kind of script in my new folder to do it.
I tried to look for existing tools for such automation or something similar in the internet, but couldn’t find one.
So I’d like to ask is there tools like this out there? Maybe not exactly to install Django apps, but to this kind of process automation in general. Or everybody just writes their own bash script to do such things?
have you had a look at fabric and puppet?