My capistrano deploy scripts for django, pyenv, pip and uwsgi.
Including the configuration of:
- pyenv
- virtualenv
- pip
- assets (compile, collect)
- migration
- uwsgi config and process management
If you're not familiar with Ruby, you can follow steps from Rails Bridge Installfest.
Just follow the steps until the Rails section (you don't need to install Rails).
gem install bundler
bundle install
If you want to change capistrano version, edit Gemfile
and config/deploy.rb
, then run bundle install
.
- Edit configuration files in config/, change application names, application paths, python version
- Create shared files and folders in target machine
- run
cap staging/production pyenv:install
- run
cap staging/production virtualenv:install
- run
cap staging/production deploy
- Setting up your nginx config files (see nginx_application.example)