fix command on vagrant push website sample script
fix sample to scp -r . server:/var/ww/website
This commit is contained in:
parent
a755cf285a
commit
f62c570d97
|
@ -36,10 +36,22 @@ a single push definition.
|
||||||
The Vagrant Push Local Exec strategy is defined in the `Vagrantfile` using the
|
The Vagrant Push Local Exec strategy is defined in the `Vagrantfile` using the
|
||||||
`local-exec` key:
|
`local-exec` key:
|
||||||
|
|
||||||
|
Remote path:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
config.push.define "local-exec" do |push|
|
config.push.define "local-exec" do |push|
|
||||||
push.inline = <<-SCRIPT
|
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
|
SCRIPT
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue