knight 4b0fcdb39d
Some checks failed
Deploy Stacks / deploy (push) Failing after 5s
Add missing configs: traefik middlewares, gollum config.rb, brain nginx.conf
2025-12-31 14:49:06 -05:00

13 lines
308 B
Ruby

module Gollum
Gollum::GIT_ADAPTER = "my"
end
Gollum::Hook.register(:post_commit, :hook_id) do |committer, sha1|
committer.wiki.repo.git.pull('origin', committer.wiki.ref)
committer.wiki.repo.git.push('origin', committer.wiki.ref)
end
wiki_options = {}
Precious::App.set(:wiki_options, wiki_options)