<div dir="ltr">I think most of these GitHub pages are supposed to do relative paths so if they have weird static references to things ctrl+f'ing around might be key. The other joyous part of GitHub Pages is that it takes ages to propagate into the Content Distribution Network.<br><br>What I would imagine is just try to make a bunch of strings that are unique to the different configuration variables. Like the CNAME file obviously could just be replaced using sed. Then run the script before you deploy your changes. With GitLab you would just push the source to whatever and it'd run the CI/CD scripts. Less easy on Github.<br><br>Basically, I can't think of any options that wouldn't require some kind of preparation scripts to be written.</div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jul 15, 2018 at 4:06 PM Paul Nijjar via kwlug-disc <<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I run into this problem every time I try to have a development version<br>
of a website, and I still don't know a painless way to resolve it. <br>
<br>
There is a website published with Github pages here:<br>
<a href="http://waterlooregionvotes.org" rel="noreferrer" target="_blank">http://waterlooregionvotes.org</a> <br>
<br>
The Github source is here: <a href="https://github.com/CivicTechWR/WRvotes" rel="noreferrer" target="_blank">https://github.com/CivicTechWR/WRvotes</a><br>
<br>
I was editing this website directly on that project page but it was<br>
irritating others when the page failed to build. So I forked the site<br>
here: <br>
<br>
<a href="https://github.com/pnijjar/WRvotes" rel="noreferrer" target="_blank">https://github.com/pnijjar/WRvotes</a><br>
<br>
and made the site live here: <br>
<br>
<a href="https://pnijjar.github.io/WRvotes" rel="noreferrer" target="_blank">https://pnijjar.github.io/WRvotes</a> <br>
<br>
Naturally, a bunch of things are broken, because of configuration<br>
problems:<br>
<br>
- There is a CNAME file that should not be duplicated<br>
- Maybe there are config files that need to be different between the<br>
two sites. <br>
<br>
I want to have a version of the configuration files on my development<br>
site (which is NOT a local site on my laptop -- I am trying to use<br>
GH-pages as the development environment) and a separate set of<br>
configuration files on the CivicTechWR site. When I pull from my<br>
<a href="http://pnijjar.github.io" rel="noreferrer" target="_blank">pnijjar.github.io</a> site to CivicTechWR, I want to avoid pulling the<br>
development version of the config files. <br>
<br>
I don't know how to do this cleanly. How do I do this cleanly? <br>
<br>
Do I make a branch with local config files? Fine. Then how do I<br>
prevent these files from accidentally clobbering the real site?<br>
<br>
Do I do something else?<br>
<br>
- Paul<br>
<br>
<br>
-- <br>
<a href="http://pnijjar.freeshell.org" rel="noreferrer" target="_blank">http://pnijjar.freeshell.org</a><br>
<br>
_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
</blockquote></div>