Grav Git sync
-
I am trying to get grav git sync to work.
Starting with a bare repo https://git.knownelement.com/reachableceo/reachableceo.com .
root@274c4e05-0aea-49c1-8c4a-aff47c566f65:/app/data/user# git status
fatal: detected dubious ownership in repository at '/app/data/user'
To add an exception for this directory, call:git config --global --add safe.directory /app/data/user
root@274c4e05-0aea-49c1-8c4a-aff47c566f65:/app/data/user# git config --global --add safe.directory /app/data/user
error: could not lock config file /root/.gitconfig: Read-only file system
root@274c4e05-0aea-49c1-8c4a-aff47c566f65:/app/data/user#Any way to solve this?
If I use a repo that is initalized, it complains about divergent branches. And the suggested ways to fix all involve git --config which fails.
-
Does doing this help? https://docs.cloudron.io/apps/grav/#cli
-
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.
-
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.
-
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.