This python package allows me to manage deployments of Django application into
Apache mod_wsgi
server. Also it brings to me utils for local tasks.
# fabfile.py
from fabric_utils.django import deployment as dep
# ...
@task
def deploy():
if env.environment is not "local":
require('hosts', provided_by=[local])
require('path')
dep.generate_release_path()
dep.upload_source()
dep.symlink_current_release()
dep.install_requirements()
dep.migrate()
dep.install_static()
dep.compress_static()
dep.compile_messages(['cirujanos/apps/media', 'cirujanos/apps/about'])
dep.www_folder_permissions()
dep.install_site()
dep.restart_webserver()
python setup.py sdist upload
pip install <PYTHON PACKAGE DIR>/dist/fabric-utils-0.0.2.tar.gz
- Refactoring to remove references to own projects
- Document available tasks
- Add tests through travis
- Create function export_django_admin returning string without vars to add to the rest of the sudo_command script
- Move install_site and restart_webserver to its own package
- Decorate commands with options like "settings"
- Tasks to remove old deployments from server
fab compress_static -c .fabricrc
Install pandoc
- 0.0.3: Repackaging tasks in a more concise way.