Manage Websites with Git SOP
Owner: GNOME Sysadmin Team
Purpose: Allows remote hooks execution
This procedure will explain how to update a website using a GIT repository hosted on another machine.
- log into the $server you need something updated or rebuilt from a GIT repository. (this may require a few iptables tricks to allow git.gnome.org to access $server remotely)
- cd /etc/fishpoll.d
- cp -r existing-conf-file your-new-conf-file (you can grab socket:/etc/fishpoll.d/wgo_theme as an example)
- login into git.gnome.org and cd to the relevant GIT repository.
- cd hooks and nano post-update (you should see it as post-update.sample, just move it to post-update)
- add content this way: fishpoke server topic (where server is socket for example, without .gnome.org appended and topic is the conf file, so for wgo_theme we'll have 'fishpoke socket wgo_theme')
- start or kill the daemon and start it again to flush the configuration files with 'sudo fishpolld'. (or even sudo fishpolld -d for DEBUG mode)