Giter Club home page Giter Club logo

Comments (13)

styxlab avatar styxlab commented on August 25, 2024 2

@tobimori: I have nothing to add - you are always to the point! Thanks for answering!

from gatsby-theme-try-ghost.

tobimori avatar tobimori commented on August 25, 2024 1

You can't got your site deployed like this because Netlify can never get the content. Please follow the Readme of styxlab/gatsby-starter-try-ghost.

from gatsby-theme-try-ghost.

tobimori avatar tobimori commented on August 25, 2024 1

Using Gatsby with Ghost on a local machine is sadly not possible because of the way Gatsby (and this repository) handles Ghosts In-Post-Images.

You should be able to use the linked repository with a custom domain by adding a CNAME file with the desired domain name to your GitHub repository, pointing your Domain records to GitHub's server as described here and enabling GitHub Pages. You could also select that repository (so where the script uploaded the static files) to deploy to Netlify. The build process happens on your computer and the script will upload correctly to GitHub, so there won't be problems like with Gatsby. Unfortunately, I can't give support you with that.

from gatsby-theme-try-ghost.

tobimori avatar tobimori commented on August 25, 2024

Netlify can't access a local Ghost instance hosted on your pc. You need to host Ghost on a server if you want to deploy to the outer world.

from gatsby-theme-try-ghost.

pavlenex avatar pavlenex commented on August 25, 2024

I connected my local with Settings > Integrations, created Gatsby integration and pushed it on GitHub. So basically any changes on my localhost:2368/ are reflected on http://localhost:8000/ then it's all pushed on GitHub here. Where Netifly fetched and builds it. I actually managed to do it earlier today, but right now I'm getting this error mentioned above.

from gatsby-theme-try-ghost.

tobimori avatar tobimori commented on August 25, 2024

You need to make your Ghost available to the outer world if you want to use it as a backend for Gatsby. Also, localhost defaults to the current computer, meaning wherever Netlify runs that build on, not exactly your computer. You can never run the build like this on server where no Ghost development environment is running.

from gatsby-theme-try-ghost.

pavlenex avatar pavlenex commented on August 25, 2024

Thanks.

Is that the reason why these instructions are missing from the repo readme ?

I am also following this tutorial and basically replacing gatsby-starter-ghost with styxlab/gatsby-starter-try-ghost

I actually managed to get the website deployed earlier today with this, but getting the error mentioned on my second attempt.

from gatsby-theme-try-ghost.

pavlenex avatar pavlenex commented on August 25, 2024

Oh my, I am blind gatsby-theme-try-ghost and
gatsby-starter-try-ghost aren't the same. So I am having issue with gatsby-starter-try-ghost 🤦

from gatsby-theme-try-ghost.

pavlenex avatar pavlenex commented on August 25, 2024

Any idea why the issues aren't enabled there? Yup, I mixed things up, trying again and will report back. Thanks for quick replies.

from gatsby-theme-try-ghost.

tobimori avatar tobimori commented on August 25, 2024

Because that repository is just a starter repo with preconfigured plugins that are hosted in this repo. You're fine with staying here with your issue, but it's still a configuration issue from your site. Netlify can't access your Ghost instance because you defined a local instance in .ghost.json . Netlify needs to be able to source from your instance and will always link back to your instance for inline images - so you need a server to run Ghost on.

from gatsby-theme-try-ghost.

pavlenex avatar pavlenex commented on August 25, 2024

@tobimori Thanks. I may give up then. My goal is having ghost locally, editing posts,etc then publishing on GitHub Pages/Netifly and having it as a static site on a custom domain.

It was an interesting learning curve, as this is all new to me. Earlier I tried this but didn't worked well with a custom domain, so I've been playing with gatsby-started-try-ghost and this, I liked gatsby-started-try-ghost because it allowed newer theme.

from gatsby-theme-try-ghost.

pavlenex avatar pavlenex commented on August 25, 2024

Thanks for clarification, I'll re-direct my research in that direction. Glad I discovered Gatsby and this repo nevertheless may come in handy for the future projects. Thanks for your help, appreciate it.

from gatsby-theme-try-ghost.

tobimori avatar tobimori commented on August 25, 2024

No problem!

from gatsby-theme-try-ghost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.