On Tue, Jul 26, 2016 at 11:40 PM, Dave Crossland <[email protected]> wrote:
> > On 26 July 2016 at 22:38, Samuel Cantero <[email protected]> wrote: > >> Zone added. >> > > Awesome! Thanks guys! > > >> Now we need to configure the site in freedom. Dave, in what is written >> the new site? >> > > Its a jekyll site, I assume Sam P has used > https://developer.github.com/webhooks/ to set up freedom so that on each > commit to the master branch of https://github.com/sugarlabs/www-sugarlabs then > freedom pulls that repo master branch and runs jekyll to update > the www.sl.o website. > I have found how Sam P did it. In https://github.com/sugarlabs/www-sugarlabs/settings/hooks there is a webhook defined. This webhook send a POST request in JSON format to https://hook.sugarlabs.org/www.sugarlabs.org. A container named org.sugarlabs.www-rebuilder is in charge of processing this payload. This container was down. I had to manually trigger the delivery of the last two payloads. They have previously failed because the container was down. This container does the following: (1) Install jekyll. (2) Clone the SL repo. (3) Install Flask (4) Execute a Flask Python App which does the following: pull the repo and jekyll build. This app doesn't parse the POST request. The site is generated in the folder /clone/_site which is bind to the following dir in freedom: /srv/www-out. This is the doc root for the SL in the nginx server block. We can apply the same procedure for turtleartday.org. > > -- > Cheers > Dave >
_______________________________________________ IAEP -- It's An Education Project (not a laptop project!) [email protected] http://lists.sugarlabs.org/listinfo/iaep
