[kwlug-disc] Store local config for development github pages
Chamunks
chamunks at gmail.com
Sun Jul 15 22:42:31 EDT 2018
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.
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.
Basically, I can't think of any options that wouldn't require some kind of
preparation scripts to be written.
On Sun, Jul 15, 2018 at 4:06 PM Paul Nijjar via kwlug-disc <
kwlug-disc at kwlug.org> wrote:
> I run into this problem every time I try to have a development version
> of a website, and I still don't know a painless way to resolve it.
>
> There is a website published with Github pages here:
> http://waterlooregionvotes.org
>
> The Github source is here: https://github.com/CivicTechWR/WRvotes
>
> I was editing this website directly on that project page but it was
> irritating others when the page failed to build. So I forked the site
> here:
>
> https://github.com/pnijjar/WRvotes
>
> and made the site live here:
>
> https://pnijjar.github.io/WRvotes
>
> Naturally, a bunch of things are broken, because of configuration
> problems:
>
> - There is a CNAME file that should not be duplicated
> - Maybe there are config files that need to be different between the
> two sites.
>
> I want to have a version of the configuration files on my development
> site (which is NOT a local site on my laptop -- I am trying to use
> GH-pages as the development environment) and a separate set of
> configuration files on the CivicTechWR site. When I pull from my
> pnijjar.github.io site to CivicTechWR, I want to avoid pulling the
> development version of the config files.
>
> I don't know how to do this cleanly. How do I do this cleanly?
>
> Do I make a branch with local config files? Fine. Then how do I
> prevent these files from accidentally clobbering the real site?
>
> Do I do something else?
>
> - Paul
>
>
> --
> http://pnijjar.freeshell.org
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20180715/410b1094/attachment.htm>
More information about the kwlug-disc
mailing list