» Vagrant Push
» Heroku Strategy
Heroku is a public PAAS provider that makes it easy to deploy anapplication. The Vagrant Push Heroku strategy pushes your application's code toHeroku.
Warning: The Vagrant Push Heroku strategy requires youhave configured your Heroku credentials and created the Heroku application.This documentation will not cover these prerequisites, but you can read moreabout them in the Heroku documentation.
Only files which are committed to the Git repository will be pushed to Heroku.Additionally, the current working branch is always pushed to the Heroku, even ifit is not the "master" branch.
The Vagrant Push Heroku strategy supports the following configuration options:
app
- The name of the Heroku application. If the Heroku application does notexist, an exception will be raised. If this value is not specified, thebasename of the directory containing theVagrantfile
is assumed to be thename of the Heroku application. Since this value can change between users, itis highly recommended that you add theapp
setting to yourVagrantfile
.dir
- The base directory containing the Git repository to upload to Heroku.By default this is the same directory as the Vagrantfile, but you can specifythis if you have a nested Git directory.remote
- The name of the Git remote where Heroku is configured. The defaultvalue is "heroku".
» Usage
The Vagrant Push Heroku strategy is defined in the Vagrantfile
using theheroku
key:
config.push.define "heroku" do |push|
push.app = "my_application"
end
And then push the application to Heroku:
$ vagrant push