From f62c570d970b122a080728ced56c3a27f0320c6f Mon Sep 17 00:00:00 2001 From: Alvaro Miranda Date: Thu, 12 Feb 2015 14:58:04 +1300 Subject: [PATCH] fix command on vagrant push website sample script fix sample to scp -r . server:/var/ww/website --- website/docs/source/v2/push/local-exec.html.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/website/docs/source/v2/push/local-exec.html.md b/website/docs/source/v2/push/local-exec.html.md index 536a5eab9..11ba906c8 100644 --- a/website/docs/source/v2/push/local-exec.html.md +++ b/website/docs/source/v2/push/local-exec.html.md @@ -36,10 +36,22 @@ a single push definition. The Vagrant Push Local Exec strategy is defined in the `Vagrantfile` using the `local-exec` key: +Remote path: + ```ruby config.push.define "local-exec" do |push| push.inline = <<-SCRIPT - scp . /var/www/website + scp -r . server:/var/www/website + SCRIPT +end +``` + +Local path: + +```ruby +config.push.define "local-exec" do |push| + push.inline = <<-SCRIPT + cp -r . /var/www/website SCRIPT end ```