Where is admin page?

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

  • What’s your URL? This is the easiest way for others to debug your issue
  • What version of Ghost are you using?
    I use this : https://github.com/TryGhost/gatsby-starter-ghost
  • What configuration?
    : None.
  • What browser?
    : Safari 13.0 on macOS High Sierra
  • What errors or information do you see in the console?
    : I build my Ghost Blog with Netlify, and Gatsby. I successfully hosted Ghost in Netlify and localhost. But, I don’t know how to upload my post, and change settings. I know there is the admin page in Ghost, but I can’t find where it is. How can I enter the admin page of my Ghost? I have troubled for three days.

Hey there @Candykick :wave:. Looks like you’ve got the Gatsby front-end setup on your Netlify project but not linked it to your own Ghost site. Check out our developer docs on how to use our Gatsby starter with your own Ghost site:

It seems like you’ve only got the Gatsby project set up in your machine, not Ghost itself. Gatsby is only a renderer that pulls data from Ghost, so you have to have an existing Ghost running somewhere to pull data from.

By default the data is pulled from the “Ghost Gatsby Starter” website, but you can configure it to use your own Ghost site in .ghost.json.

I can suggest two options for you:

Option one: Set up your Ghost on a free site like Heroku, using eg. this project. Create a new webhook, then edit your Gatsby site’s .ghost.json to use [your installation].herokuapp.com as a data source and re-deploy to Netlify.

Now you can access Ghost admin from [your installation].herokuapp.com/ghost to modify content, and rebuild Netlify to update the site with the latest posts on your Ghost site. You might want to create a Netlify webhook on Ghost to update your Gatsby site whenever a change is made in Ghost.

This is what I’m doing for myself, with Ghost on Heroku and Gatsby here on Netlify.

Option two: The second option is to always build the site locally. Install Ghost locally using ghost install, and link it with the Gatsby project by creating a new webhook and updating .ghost.json to match. Then you can run gatsby build and drag-and-drop the generated public/ folder to Netlify. But you’ll have to do this every time you make a change to the site.

Either way, you must have Ghost running by itself before you can connect Gatsby to it. Otherwise Gatsby will pull content from the demo starter site which you can’t modify.

Hope that helps. Let me know if you have any more questions!