Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Ghost Admin panel on custom domain #21

Open
danieldanielecki opened this issue Dec 1, 2024 · 7 comments
Open

Access Ghost Admin panel on custom domain #21

danieldanielecki opened this issue Dec 1, 2024 · 7 comments

Comments

@danieldanielecki
Copy link

Hey, I don't see it's possible to access the default Ghost admin panel via https://astro-starter-ghost.netlify.app/ghost

I have the same with https://blog.ditectrev.com, and I can access it only via https://ditectrev-blog.ghost.io/ghost from where I got the API keys, any idea?

I've tried to change PUBLIC_GHOST_URL=https://ditectrev-blog.ghost.io to PUBLIC_GHOST_URL=https://blog.ditectrev.com in the .env file, but then it doesn't even compile giving an error SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON.

Screenshot 2024-12-01 at 19 47 29 Screenshot 2024-12-01 at 19 50 54
@PhilDL
Copy link
Owner

PhilDL commented Dec 4, 2024

Hi @danieldanielecki these are two different apps, the astro app just contains the front-end, blog site. The backend will remain under /ghost on your other domain.

@danieldanielecki
Copy link
Author

@PhilDL how do you access your admin panel on custom domain URL?

@PhilDL
Copy link
Owner

PhilDL commented Dec 8, 2024

@PhilDL how do you access your admin panel on custom domain URL?

You should access the admin panel, on the domain where the ghost instance is hosted, I made this schema
to make it clearer:

astro-starter-ghost-architecture

@danieldanielecki
Copy link
Author

@PhilDL how do you access your admin panel on custom domain URL?

You should access the admin panel, on the domain where the ghost instance is hosted, I made this schema to make it clearer:

astro-starter-ghost-architecture

Thanks! Getting there...

Okay, so I have created an app on https://ditectrev-blog.ghost.io/ghost, where I've added the custom integration.
The key from there, I've placed in .env, and pushed the code after a build. I can see the frontend on https://blog.ditectrev.com, but whenever I'll edit something on https://ditectrev-blog.ghost.io/ghost only content on https://ditectrev-blog.ghost.io is changing.

My trial expired, so I can't create another custom integration, thinking loud: maybe I need to get the Ghost PRO to have it up & running? I've been looking for a self-hosted option, didn't expect this requires any connection with ghost.io

Screenshot 2024-12-09 at 10 35 43

@danieldanielecki
Copy link
Author

PS. Amazing drawing, which software are you using?

@PhilDL
Copy link
Owner

PhilDL commented Dec 11, 2024

Drawing is made using Excalidraw.

The content of this Astro site is static, generated when you run the build step. After that the content will stay the same until next build.

To make your edits visible you need to rebuild and deploy your static Astro site.

The ghost instance (for you on ghost.org hosting) needs to be up at the moment the static Astro site needs to be built. You can use official ghost org but could also use digitalpress.blog, that's what I use for this example repository it costs me zero.

Or you can use fly.io to deploy it in a container, there are some tutorials online. The low usage should keep you in the free tier.

@danieldanielecki
Copy link
Author

digitalpress.blog - I wouldn't ever think somebody would create a service just to host Ghost for free. Wow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants