This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
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
-
Before you update via Capistrano remotely you must make some changes locally first.
- Update the projects .ruby-version file
- Update rbenv / ruby so that the required version is available to install (if needed).
-
For Linux:
cd ~/.rbenv/plugins/ruby-build/ git pull
-
For Mac: (https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x)
brew update brew install rbenv ruby-build
-
- Update ruby
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