Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Capistrano Deploy Notes

Justin Patterson edited this page Apr 1, 2014 · 20 revisions

Deploy command where environment is one of qa|staging|demo|production: cap [environment] deploy

Other helpful deployment options

  • deploy to staging environment: cap staging deploy
  • deploy a specific branch, develop to qa environment: cap -s branch=develop qa deploy
  • deploy a specific revision, in this case c9800f1, to staging environment: cap -s revision=c9800f1 staging deploy
  • deploy a specific tag, my_tag, to production environment: cap -s tag=my_tag production deploy

Update ruby version for a given project

  • Before you update via Capistrano remotely you must make some changes locally first.

    cd [into project directory]
    rbenv install  [ will automatically install the version listed in your file: .ruby-version]
    • Install bundler:
    gem install bundler
    rbenv rehash
    bundle install
  • Push changes to your repository.

  • Now you can update your applications remote installations of rbenv & ruby:

    cap [environment] rbenv:update
    cap [environment] rbenv:setup
  • Continue on with normal deployment.

  • These steps were condensed from https://github.com/sstephenson/rbenv

Clone this wiki locally