(no title)
snprbob86 | 12 years ago
Are you concerned about being wasteful with disk space? Or is there some other concern here? Some security issue perhaps?
snprbob86 | 12 years ago
Are you concerned about being wasteful with disk space? Or is there some other concern here? Some security issue perhaps?
ohwp|12 years ago
Imho version control could be used for deployment but only when you use the release-branch of your project.
And ofcourse NEVER put your config in version-control ;)
mnutt|12 years ago
I'm not sure I'd make that blanket statement. Version control seems like a great place for configuration. It allows you to centrally manage configuration details and provides an audit trail for debugging. You just want to make sure it is in a separate, secure repository and not mixed in with your app development.
jlgreco|12 years ago
scott_w|12 years ago
You may want to look into salt, chef or puppet, which let you separate out your configuration from your security credentials.
jwilliams|12 years ago
rdtsc|12 years ago
Why wouldn't you want to version your configurations in general? Maybe I am not sure what you mean by "config" but in general version controlled configuration is always good. I even set up git in my etc sometimes to track changes I make to it manually (not in production, on my home machine).
bpatrianakos|12 years ago
tux1968|12 years ago
Mostly it's because it seems people are using Git to deploy without a good reason. At least I haven't heard of an advantage enjoyed by those using Git for deployment.
There are some obvious disadvantages, so what is the compensation? It seems the only reason is that it's easy to type "git push". But of course any deployment method can be wrapped in an equally easy script command.
Okay, I have to admit to knowing of one advantage, and that is that only the delta of your changes will be transmitted over the wire, rather than a complete checkout. It's just that in practice the savings aren't usually enough to warrant the potential downsides. For my money i'd prefer rsync or any number of other solutions.
mnutt|12 years ago
Once the repo has been fetched, we just check out the right tag/revision and do a local copy from the git repo into the app directory. At this step you can exclude .git if you want.
This process has an advantage over direct git checkout in that if you (heaven forbid) ssh onto the server and directly modify anything, you won't end up with conflicts.
RussianCow|12 years ago