code-for-nashville / inclucivics

Data visualization of Nashville Metropolitan Government employee salary and demographics
http://www.codefornashville.org/inclucivics/
MIT License
11 stars 18 forks source link

change the homepage so it works at inclucivics.org #175

Closed combinatorist closed 5 years ago

combinatorist commented 5 years ago

@enlore - this is the only mention of the homepage. When I change it and deploy, then I get a 404 visiting inclucivics.org.

combinatorist commented 5 years ago

@enlore - Look at my commits. I get the same issue regardless of whether I change the whole domain or just drop the /inclucivics subpath. I'm wondering if it has anything to do with this: https://help.github.com/en/articles/custom-domain-redirects-for-github-pages-sites

Should we be doing orgname.github.io? Is it even possible for us to redirect without using the project name as a subpath?

combinatorist commented 5 years ago

To get this to work, I also had create the inclucivics.org custom domain in the repo's settings page.

So, now that domain is routed to the github pages machines (IP addresses) by Metro Human Relations Commission who owns the domain. Then (I suppose) github recognizes that we are the only repo / org / user that has claimed that domain and so associates it with our domain instead (or rather serves this repo's content for that domain). And now that we no longer have the /inclucivics subpath in our homepage (thanks to this PR), it serves up the website. Otherwise, I guess we'd have to have people use inclucivics.org/inclucivics (which is silly).