[IAEP] TurtleArtDay.org domain transfer + new site

Samuel Cantero scanterog at gmail.com
Wed Jul 27 00:46:09 EDT 2016


On Tue, Jul 26, 2016 at 11:40 PM, Dave Crossland <dave at lab6.com> wrote:

>
> On 26 July 2016 at 22:38, Samuel Cantero <scanterog at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/iaep/attachments/20160727/b8a41056/attachment-0001.html>


More information about the IAEP mailing list