Open cboettig opened 9 years ago
:+1: definitely.
Is avoiding the commit necessary for deploying elsewhere though?
guess not, it's more of a question of whether or not there needs to be a git repository (e.g. a .git directory) in the directory being deployed.
On Tue, May 26, 2015 at 2:45 PM Rich FitzJohn notifications@github.com wrote:
[image: :+1:] definitely.
Is avoiding the commit necessary for deploying elsewhere though?
— Reply to this email directly or view it on GitHub https://github.com/richfitz/drat.builder/issues/4#issuecomment-105675484 .
Supporting skipping git would be easy enough (probably could go through and make all steps optional). Though omitting the .git directory on deploy should be easy for most tools, right?
right. So if you run drat.builder in a new directory that isn't initialized as a git repo, does drat.builder make one automatically or throw an error?
On Tue, May 26, 2015 at 4:51 PM Rich FitzJohn notifications@github.com wrote:
Supporting skipping git would be easy enough (probably could go through and make all steps optional). Though omitting the .git directory on deploy should be easy for most tools, right?
— Reply to this email directly or view it on GitHub https://github.com/richfitz/drat.builder/issues/4#issuecomment-105699677 .
At the moment it creates one (as of yesterday). That could be easily replaced.
One option:
init_git
) with default of TRUE
that will initialise a git repo if not presentoh cool. yeah, ideally you'd have the option to avoid creating if not necessary, but probably not that important as long as it's not throwing errors. like you say you can always avoid copying the .git over to the server if you don't want it.
On Tue, May 26, 2015 at 5:04 PM Rich FitzJohn notifications@github.com wrote:
At the moment it creates one (as of yesterday). That could be easily replaced.
One option:
- add an option (init_git) with default of TRUE that will initialise a git repo if not present
- if the git repo is not present then skip the commit step automatically
— Reply to this email directly or view it on GitHub https://github.com/richfitz/drat.builder/issues/4#issuecomment-105701033 .
As awesome as the free hosting with super-stable GitHub servers and fast CDN and all is, there are some use cases for which it would make more sense to host elsewhere than on Github pages -- e.g. so we can parse server logs and compute download counts, etc. Seems the
commit
workflow is relatively hardwired into the top-level functions though. Probably just need a way to toggle off the call toupdate_drat
in thebuild()
call.