dploy icon indicating copy to clipboard operation
dploy copied to clipboard

Don't work with "dist/" local directory

Open cedric07 opened this issue 7 years ago • 3 comments

dploy not work when i use "dist" for local directory but work when i use an other name :

prod: host: "ftp.myserver.com" user: "myuser" pass: "mypassword" path: local: "dist/" remote: "www/"

Any solutions ?

cedric07 avatar Apr 07 '17 19:04 cedric07

I think, your dist folder is ignored by your .gitignore file you could:

  • track this folder by git
  • OR use the include property to always reupload all the files in this folder
include:
        "dist/**/*": "dist/"

benavern avatar Apr 11 '17 21:04 benavern

The solution proposed by @benavern is good. However, it defeats the entire purpose of Dploy when working with generated content. For instance, when using Jekyll, it's a good practice to put the content of your generated website in the .gitignore file. Having to manually include its content back into Dploy makes it that it defeats the use of the .rev file, as the content of the entire website is uploaded again.

fbnlsr avatar May 22 '17 13:05 fbnlsr

@benavern thank you!

big-kahuna-burger avatar Nov 06 '17 12:11 big-kahuna-burger