Use vagrant push with capistrano
Ruby
Latest commit 88b5e2f Jan 31, 2015 Martin Fenner cleanup for first public release
Permalink
Failed to load latest commit information.
lib cleanup for first public release Jan 31, 2015
locales run capistrano in context of system bundle Jan 31, 2015
spec cleanup for first public release Jan 31, 2015
.gitignore Initial commit Jan 28, 2015
.rspec added rspec and vagrant-spec Jan 31, 2015
Gemfile
Gemfile.lock
LICENSE.txt
README.md run capistrano in context of system bundle Jan 31, 2015
Rakefile added rspec and vagrant-spec Jan 31, 2015
vagrant-capistrano-push.gemspec simplify how files are included Jan 31, 2015
vagrant-spec.config.rb added rspec and vagrant-spec Jan 31, 2015

README.md

Vagrant Capistrano Push

Deploy or "push" application code in the same directory as your Vagrantfile to a remote server using capistrano.

Installation

vagrant plugin install vagrant-capistrano-push

Usage

# Vagrantfile
config.push.define "staging", strategy: "capistrano" do |push|
  push.stage = "staging"
end

config.push.define "production", strategy: "capistrano" do |push|
  push.stage = "production"
end

And then

vagrant push production

Or if you are using ENV variables:

# Vagrantfile
config.push.define "capistrano" do |push|
  push.stage = ENV["STAGE"]
end

And then

vagrant push

Contributing

  1. Fork it ( https://github.com/mfenner/vagrant-capistrano-push/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request