Marten: Create a separate domain name for Marten

Created on 3 Dec 2019  路  21Comments  路  Source: JasperFx/marten

We can host the main website at this domain which will establish as a go to place for users who want to know about Marten, docs, sponsors and everything can be aggregated at one place.

Result:
https://martendb.io/ was selected and used as the domain.

CI docs enhancement project management

All 21 comments

@jokokko bought marten.io 馃憤

martendb.io or marten.io? I guess it is the former

Right, my bad - martendb.io.

@jokokko will you configure Github pages to use new custom domain?

So the A records are now set (as per https://help.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain)

id 45359
opcode QUERY
rcode NOERROR
flags QR RD RA
;QUESTION
martendb.io. IN A
;ANSWER
martendb.io. 1798 IN A 185.199.109.153
martendb.io. 1798 IN A 185.199.110.153
martendb.io. 1798 IN A 185.199.111.153
martendb.io. 1798 IN A 185.199.108.153
;AUTHORITY
;ADDITIONAL

@jokokko I configured that on the GitHub settings. It's almost working.
obraz
Probably some paths to CSS needs to be tweaked. I'll try to have a look at that 馃憤

typically we also have to add a CNAME record pointing to jasperfx.github.io since Marten is hosted under jasperfx.github.io/marten/ it could pose a problem.

I would suggest that we host a separate docs site in netlify and then do the DNS settings pointing to it. this way, the existing site will work fine and at some point we can sunset the github.io url. I can wire it.

I like the idea of using Netlify 馃憤

Alright. Once done, I'll update the DNS records (30 min TTL on the current A records)...

@oskardudycz if you want to give it a shot go ahead, you can just use a manual deploy for now by dragging dropping the folder in the Netlify deploys page. I will configure the automated deploy later.

@mysticmind I鈥檒l try to configure automatic deployment in the evening (I did that already for my other pages done in GatsbyJS)

I managed to setup Netlify deploy.

URL: https://lucid-northcutt-013a56.netlify.com/

DNS Record: martendb.io A 104.198.14.52

Or it's possible to use Netlify DNS for the domain (as I did in my other Netlify deployments):

  • dns1.p02.nsone.net
  • dns2.p02.nsone.net
  • dns3.p02.nsone.net
  • dns4.p02.nsone.net

However, there is still the same issue as with github docs 馃檭 It seems that our script is addin marten prefix for the paths. I'm trying to find out how it's done, but I don't know yet. I'll keep you posted. Probably PR will be needed.

I prepared the PR https://github.com/JasperFx/marten/pull/1403 that updates the configuration.

I published already the fixed content to gh-pages-netlify and Netlify.

So as discussed in Gitter, NS records updated...

Thank you. It works! 馃弳
obraz

I'll also configure additionally https on Netlify when DNS fully propagate.

I think that after reviewing and merging my changes to the build script (https://github.com/JasperFx/marten/pull/1403) we're fine to close that task! 馃槃

Closed via #1403

image

since martendb.io is a https site, there are js files and images which are http resulting in mixed content. I will take a look and fix the same.

@mysticmind nice catch! I鈥檒l check that and try to provide a fix in a separate PR.

@oskardudycz I have fixed mixed content issue of http links in https. Also found some link and images linking issues in doc pages (already existing issues) which I have fixed as well. I will send a PR shortly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ppumkin picture ppumkin  路  4Comments

cocowalla picture cocowalla  路  6Comments

kamranayub picture kamranayub  路  7Comments

jeremydmiller picture jeremydmiller  路  6Comments

jeremydmiller picture jeremydmiller  路  7Comments