vaguerent/website/docs/source/v2/push/local-exec.html.md
2014-12-08 11:35:14 -08:00

1.0 KiB

page_title sidebar_current description
Vagrant Push - Local Exec Strategy push-local-exec The Vagrant Push Heroku strategy pushes your application's code to Heroku. Only files which are committed to the Git repository are pushed to Heroku.

Vagrant Push

Local Exec Strategy

The Vagrant Push Local Exec strategy allows the user to invoke an arbitrary shell command or script as part of a push.

Warning: The Vagrant Push Local Exec strategy does not perform any validation on the correctness of the shell script.

The Vagrant Push Local Exec strategy supports the following configuration options:

  • command - The command to execute (as a string).

Usage

The Vagrant Push Local Exec strategy is defined in the Vagrantfile using the local-exec key:

config.push.define "local-exec" do |push|
  push.command = <<-SCRIPT
    scp . /var/www/website
  SCRIPT
end

And then invoke the push with Vagrant:

$ vagrant push