Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Git connection to GitHub doesn’t work after token update

  • This topic has 6 replies, 2 voices, and was last updated 2 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11286
    Avatar photoAlx

    Hello, Alx, again.

    Today I needed to update the GitHub token, and Publii looks as if sync (though when testing connection it still gets stuck), but nothing happens in GitHub.

    The deployment.error log is empty.

    It however works if I duplicate the site and reconnect the git connection with the new token.

     

    #11291
    Avatar photoTomasz Dziuda

    Hi,

    Do you have anything useful in deployment.process log file?

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #11304
    Avatar photoAlx

    It doesn’t look like.

    This is the last lines of the deployment.process log in the original (actually this was already a copy if the very first one) website that doesn’t work:

     Git debug: git add done
     Git debug: changes exists =  true
     Git debug: commit done
     Git debug - message: 
     Git debug: push done

    And this are the last lines of the deployment.process log in the copied website that connects to GitHub:

     Git debug: git add done
     Git debug: changes exists =  true
     Git debug: commit done
     Git debug - message: 
     Git debug: push done

    The previous lines are all the files and pages, all marked as ‘add’

    #11342
    Avatar photoTomasz Dziuda

    @Alx – I have found one issue – did you changed your repository URL under Server settings after first sync? I have found that after initial sync changing repository URL has no effect. So e.g. if you used URL1, synced website, then changed repository URL to URL2, Publii will still try to sync website under URL1.

    Website duplication can help, because some folders (including .git in the output directory)  are removed so then the app starts to use URL2.

    I will implement a fix which will remove .git repository after server settings change

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #11347
    Avatar photoAlx

    Hello Tomasz,

    Thank you for your reply.

    I didn’t change the URL initially, just the token.

     

    #11350
    Avatar photoTomasz Dziuda

    Please try to remove the output directory from your site directory and then please create empty output directory. Then please try to sync your website again

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #11372
    Avatar photoAlx

    Hello Tomasz,

    I’ll keep this in mind for the next token update.

    Thank you very much for all the support!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.