Use vagrant push with capistrano
Ruby
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
locales
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
vagrant-capistrano-push.gemspec
vagrant-spec.config.rb

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