Grav Git sync
-
wrote on May 11, 2024, 4:35 PM last edited by
Does doing this help? https://docs.cloudron.io/apps/grav/#cli
-
wrote on Dec 21, 2024, 2:38 PM last edited by
Hello. I can confirm that once in the
/app/code/user
directorysudo -u www-data git status
works. I had to runsudo -u www-data git config pull.rebase false
when I set up the git-sync plugin. -
wrote on Jan 2, 2025, 4:54 PM last edited by
Thanks! That worked (running git config pull-rebase false).
-
wrote on Jan 2, 2025, 9:03 PM last edited by
Well it was able to push up to the repository. It doesn't pull down. Also the Repository Web Hook URL instructions aren't clear. Do I need to add this on the gitea side? The grav side?
-
Well it was able to push up to the repository. It doesn't pull down. Also the Repository Web Hook URL instructions aren't clear. Do I need to add this on the gitea side? The grav side?
@charlesnw are you pulling down with https or ssh? if ssh, you probably need the ssh keys in the app
-
wrote on Jan 3, 2025, 2:05 PM last edited by
HTTPS. Grav was able to push content to the repository. It's just not pulling content down.
https://git.knownelement.com/reachableceo/Reachableceo.com is the repository I'm using.
-
Well it was able to push up to the repository. It doesn't pull down. Also the Repository Web Hook URL instructions aren't clear. Do I need to add this on the gitea side? The grav side?
wrote on Jan 3, 2025, 2:22 PM last edited by@charlesnw
The webhook is on the gitea side: it triggers the sending of changes to grav when new commits/push occurs. -
wrote on Jan 3, 2025, 4:42 PM last edited by
That is what I thought.
My grav instance webhook doesn't include the FQDN, just /(blah blah) . I am presuming on the gitea side, I use https://fqdn/blahblah as the webhook? I use type gitea?
I use gitea webhooks to send events to discord so I know they work.
-
wrote on Jan 8, 2025, 1:03 PM last edited by mononym Jan 8, 2025, 1:04 PM
I cloned my grav theme repository (https link) into
app/code/user/themes
and use it in one direction only by pulling changes withsudo -u www-data git pull
to update the website.The git-sync extension basically adds (automatic) pushing as well by initializing a git directory in the
app/code/user
directory.