Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Commit

Permalink
Fix deployment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Dec 15, 2014
1 parent c6c9311 commit 7ff652c
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions vv
Original file line number Diff line number Diff line change
Expand Up @@ -875,21 +875,24 @@ function deployment_setup() {
echo " Passive Mode: $passive"
echo " Secure Mode: $secure"
echo " destination: $destination"
cp "$path/Vagrantfile" "$path/Vagrantfile-backup"

{
echo "# begin-vv-$site-$deployment_name"
echo "config.push.define \"$site-$deployment_name\", strategy: \"ftp\" do |push|"
echo " push.host =\"$host\""
echo " push.username =\"$username\""
echo " push.password =\"$password\""
echo " push.passive =\"$passive\""
echo " push.secure =\"$secure\""
echo " push.destination =\"$destination\""
echo " push.dir = \"htdocs\""
echo " push.exclude = \"wp-config.php\""
echo "end"
echo " config.push.define \"$site-$deployment_name\", strategy: \"ftp\" do |push|"
echo " push.host =\"$host\""
echo " push.username =\"$username\""
echo " push.password =\"$password\""
echo " push.passive =\"$passive\""
echo " push.secure =\"$secure\""
echo " push.destination =\"$destination\""
echo " push.dir = \"htdocs\""
echo " push.exclude = \"wp-config.php\""
echo " end"
echo "# end-vv-$site-$deployment_name"
} >> "$path/Vagrantfile"

echo "$(sed '$ d' < "$path/Vagrantfile")" > "$path/Vagrantfile"
echo "end" >> "$path/Vagrantfile"
success "Deployment setup finished. You can now deploy with a 'vv -v push $site-$deployment_name'"
}

Expand Down

0 comments on commit 7ff652c

Please sign in to comment.