jedrichards/grunt-rsync

problem with destination directory

Closed this issue · 2 comments

When I deploy to production the grunt-rsync creates a new directory to place the files. but I need it to just put the files without creating the directory on the target directory.
How I can do this?

Try putting a / at the end of the dest path. So src and dest options a bit like,

{
  src: "dist/",
  dest: "/var/www/site/"
}

should copy the contents of dist into the site folder, assuming the site folder already exists ...

It really was that.
Sorry for the inconvenience. Silly question.
Source directory was set to a variable without "/"