Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved GitHub Pages usage?

    GitHub Pages
    2
    4
    425
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      Hi all,

      I'm curious on how the GitHub Pages app is meant to be used. I get how it works with GitHub, push a repo to GitHub and it gets published on a GitHub subdomain. I'm not clear on how this is meant to work in combination with Cloudron.

      What I'd like to do is host a Jekyll repo on my Cloudron Gitea instance, and use the GitHub Pages app to render it. Is that possible? I tried something similar a while back and ran to issues, but I forget what they were offhand. Anyone have any suggestions on a workflow to do this?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by A Former User

        I've reproduced my issue. These are my steps:

        • create directory and git init
        • gem install bundler jekyll
        • jekyll new my-awesome-site
        • git add .
        • git commit -m 'initial commit'
        • git remote add page https://my.domain/_git/page
        • git push page master
        • push succeeds

        At this point my issue is that when I go to my GitHub pages site, I only get this error and an empty page "Cannot GET /"

        1 Reply Last reply Reply Quote 0
        • nebulon
          nebulon Staff last edited by

          I agree, we have to improve the documentation page. Generally I wrote the app for one customer and I never used github pages myself, so likely it is not following the common workflow. Any suggestions are welcome.

          To answer your question, two things have to be changed:

          1. the git repo has to be inside the my-awesome-site directory and that one has to be pushed.
          2. jekyll version 3.6.2 is deployed with the app, so your Gemfile has to reference that version.

          As said please let me know how the app should be improved to make it more compliant with the github flow.

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User last edited by

            Thanks, that resolved my issue.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB