Setting up domain correctly with Github pages

Hi, I am fairly new to ghost platform. Recently i’ve set up my blog. I am using buster to create static pages, I use
buster generate --domain=http://aijournal.github.io
The issue which i am facing is when i do structured data testing, i found out that my URL is set up to localhost:2368. Then i checked index.html generated by buster and it is set to localhost:2368 even though I’ve specified my domain. How can i use buster to generate my domain (URL section) in structured data testing link ?

Not particularly familiar with buster, but have you configured the configuration.production.json file to set the url to https://aijournal.github.io?

I did, still my index.html is like this:
Screenshot%20from%202018-09-17%2018-20-31

My config.production.json looks like this:

{
    "database": {
        "client": "mysql",
        "connection": {
            "host"     : "https://aijournal.github.io/",
            "user"     : "root",
            "password" : "",
            "database" : "ghost"
        }
    },
    "paths": {
        "contentPath": "content/"
    },
    "logging": {
        "level": "info",
        "rotation": {
            "enabled": true
        },
        "transports": ["file", "stdout"]
    }
}

I want it to point to my domain, so google can index it.
![Screenshot%20from%202018-09-17%2018-20-31|690x111](upload://gCkGUbv78uCRaSPfYGUcwae6OI5.png) 

@divergence check what environment your locally running Ghost instance is in. How did you set it up? If you change a config file, don’t forget to restart your ghost instance for the changes to be picked up.

Where’s the url key? https://docs.ghost.org/v1.0.0/docs/config

Where should i place it ?

Put it above the database key:

{ 
	"url": "https://aijournal.github.io",
	"server": {
	"port": 2368,
	"host": "0.0.0.0"
	},

	"database": {
		"client": "mysql",
		"connection": {
			"host" : "https://aijournal.github.io/",
			"user" : "root",
			"password" : "",
			"database" : "ghost"
		}
	},
	"paths": {
		"contentPath": "content/"
	},
	"logging": {
		"level": "info",
		"rotation": {
			"enabled": true
		},
		"transports": ["file", "stdout"]
	}
}

Thanks, I did. But it still gives me Screenshot%20from%202018-09-17%2018-20-31

This issue talks about this

Okay did you do what @Kevin said? I think you probably did though. Apart from that I don’t see anything wrong with the ghost setup per se. The only thing I noticed in the posts of you is that you said you use:

buster generate --domain=http://aijournal.github.io where you say the URL is httpS

Maybe it’s something in Buster, other than that I see nothing wrong on ghost side.

What I see in that case as well is that the config (albeit it the old config.js) also says: https, but buster log says http when connecting. Then again, that’s the only thing I can say that might be an issue?

Well i tried with https as well. I didn’t change any config file, just the config.production.json like you said. I guess the issue lies with buster itself.

Yeah might be. What I read in your link also talks of it being a buster issue. But there’s also some people that found some alternatives though, like switching to httrack

You are running it in production right?

And maybe this works in your templates?

Yeah, manually updation of links seems exhaustive though.

Jep, but you could update the .hbs templates. Unless you meant that and not the buster output.

Here, Someone has mentioned in the Fixing links section that buster has problems fixing all hyperlinks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.