joshua5201 / capistrano-django-example

My capistrano deploy scripts for django, pyenv, pip and uwsgi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

capistrano-django-example

My capistrano deploy scripts for django, pyenv, pip and uwsgi.

About

Including the configuration of:

  1. pyenv
  2. virtualenv
  3. pip
  4. assets (compile, collect)
  5. migration
  6. uwsgi config and process management

Setting Ruby Environment

Install Ruby

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).

Install Packages

gem install bundler
bundle install

Change Capistrano Version

If you want to change capistrano version, edit Gemfile and config/deploy.rb, then run bundle install.

How to Use

  1. Edit configuration files in config/, change application names, application paths, python version
  2. Create shared files and folders in target machine
  3. run cap staging/production pyenv:install
  4. run cap staging/production virtualenv:install
  5. run cap staging/production deploy
  6. Setting up your nginx config files (see nginx_application.example)

About

My capistrano deploy scripts for django, pyenv, pip and uwsgi.


Languages

Language:Ruby 100.0%