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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. GitHub Pages
  3. Github Pages app problem

Github Pages app problem

Scheduled Pinned Locked Moved Solved GitHub Pages
github-pages
7 Posts 3 Posters 1.2k Views 3 Watching
  • 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.
    • yusfY Offline
      yusfY Offline
      yusf
      wrote on last edited by girish
      #1

      Installed the Github Pages app Docs says

      When pushing, git will prompt for Cloudron username and credentials. Any Cloudron user with access to the app can push.

      but when doing that with

      git remote add page https://sub.domain.tld/_git/page
      git push page master
      

      I get

      error: src refspec master does not match any
      error: failed to push some refs to 'https://sub.domain.tld/_git/page'
      

      What's wrong?

      1 Reply Last reply
      0
      • girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #2

        @yusf I think this is because you have not committed anything to the repo and thus the push fails.

        yusfY 1 Reply Last reply
        0
        • girishG girish

          @yusf I think this is because you have not committed anything to the repo and thus the push fails.

          yusfY Offline
          yusfY Offline
          yusf
          wrote on last edited by
          #3

          @girish Thanks, I’ll check on that. I will try with an extra commit.

          murgeroM 1 Reply Last reply
          0
          • yusfY yusf

            @girish Thanks, I’ll check on that. I will try with an extra commit.

            murgeroM Offline
            murgeroM Offline
            murgero
            App Dev
            wrote on last edited by
            #4

            @yusf Steps would be something like this for pushing a repo to the GithubPages app:

            git remote add page https://sub.domain.tld/_git/page
            
            git add path/to/file.html (or git add -A which will add ALL files in the current dir, recursively)
            
            git commit -m "Some message about this commit"
            
            git push page master
            

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~

            1 Reply Last reply
            0
            • yusfY Offline
              yusfY Offline
              yusf
              wrote on last edited by
              #5

              I does work now but the time between the push command is executed until the Cloudron credentials are asked for is about 10 seconds each time. Maybe I wasn't patient enough at first.

              1 Reply Last reply
              0
              • girishG Do not disturb
                girishG Do not disturb
                girish
                Staff
                wrote on last edited by
                #6

                @yusf That query for credentials each time can get annoying very quickly.. For now, you can setup this netrc file. Please see https://cloudron.io/documentation/apps/githubpages/#publishing-pages . Coming release, we are looking into ssh based push that will bypass this non-stop password querying.

                1 Reply Last reply
                0
                • yusfY Offline
                  yusfY Offline
                  yusf
                  wrote on last edited by
                  #7
                  This post is deleted!
                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search