Closed curtisblackwell closed 10 years ago
Yeah, I've experienced the same problem with config files. What about another config option where one can list a set of files that get transfered every time? I guess the danger is that they get modified locally and unintentionally transfered to the server.
why not ignore the .gitignore and transfer everything not ignored in exclude? or have a use_gitignore: yes
setting?
i think the latter suggestion would be the most efficient/best ways to handle it.
I don't think it is safe to assume that all the files in the .gitignore
should be transferred to the server.
I agree, but I'd take it further: I don't think it's right to assume anything about which files should be transferred.
.git-ftp-ignore
) to solve this problem..gitignore
is intended to tell git what not to track. Dandelion isn't git, and it doesn't track files. It deploys them..gitignore
into dandelion.yaml
, if you know you want to ignore everything in there when deploying, than it is to read through everything and make sure you re-include the things you ignored for tracking purposes when you're deploying.You already have the exclude
option, which shows you don't assume everything should be transferred to the server. The way things are now, you assume if it's not versioned, it shouldn't be deployed, which you already agreed is incorrect. I think the best solution is to (1) not ignore everything in .gitignore
by default, (2) create something like a use_gitignore
option to simplify ignoring everything in .gitignore
for those who want to, and (3) create an include
option to counteract the .gitignore
for those who prefer that method.
If you still disagree with me on the default behavior, perhaps being able to set something like a use_gitignore
option to no
would be a good compromise.
In any case, I appreciate your writing of Dandelion and taking the time to read through my suggestions. Thanks.
Yeah, those are great points. There's definitely no harm in putting the same files in .gitignore
and the Dandelion exclude list if need be. I'll take a look at implementing this when I get a chance.
awesome, thanks. if you have a way to receive donations, i'll donate to the project for that feature.
Ultimately left .gitignore alone and introduced an additional
config param that allows unversioned files to be transferred.
Things like commercial CMS files shouldn't be versioned in public repos, but still need deployment.