Deploy or "push" application code in the same directory as your Vagrantfile to a remote server using capistrano.
vagrant plugin install vagrant-capistrano-push
# 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
- Fork it ( https://github.com/mfenner/vagrant-capistrano-push/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request