drat.builder icon indicating copy to clipboard operation
drat.builder copied to clipboard

Support non-git-based deploy?

Open cboettig opened this issue 10 years ago • 6 comments

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 to update_drat in the build() call.

cboettig avatar May 26 '15 17:05 cboettig

:+1: definitely.

Is avoiding the commit necessary for deploying elsewhere though?

richfitz avatar May 26 '15 21:05 richfitz

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 [email protected] 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 .

cboettig avatar May 26 '15 23:05 cboettig

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?

richfitz avatar May 26 '15 23:05 richfitz

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 [email protected] 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 .

cboettig avatar May 26 '15 23:05 cboettig

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

richfitz avatar May 27 '15 00:05 richfitz

oh 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 [email protected] 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 .

cboettig avatar May 27 '15 00:05 cboettig