<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 26, 2016 at 11:40 PM, Dave Crossland <span dir="ltr"><<a href="mailto:dave@lab6.com" target="_blank">dave@lab6.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 26 July 2016 at 22:38, Samuel Cantero <span dir="ltr"><<a href="mailto:scanterog@gmail.com" target="_blank">scanterog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div>Zone added. </div></blockquote><div><br></div><div>Awesome! Thanks guys!</div><span class="gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div>Now we need to configure the site in freedom. Dave, in what is written the new site?</div></blockquote></span></div><br>Its a jekyll site, I assume Sam P has used <a href="https://developer.github.com/webhooks/" target="_blank">https://developer.github.com/webhooks/</a> to set up freedom so that on each commit to the master branch of <a href="https://github.com/sugarlabs/www-sugarlabs" target="_blank">https://github.com/sugarlabs/www-sugarlabs</a> then freedom pulls that repo master branch and runs jekyll to update the www.sl.o website.</div></div></blockquote><div><br></div><div>I have found how Sam P did it. In <a href="https://github.com/sugarlabs/www-sugarlabs/settings/hooks">https://github.com/sugarlabs/www-sugarlabs/settings/hooks</a> there is a webhook defined. This webhook send a POST request in JSON format to <a href="https://hook.sugarlabs.org/www.sugarlabs.org">https://hook.sugarlabs.org/www.sugarlabs.org</a>. 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.</div><div><br></div><div>This container does the following:</div><div><br></div><div>(1) Install jekyll.</div><div>(2) Clone the SL repo.</div><div>(3) Install Flask</div><div>(4) Execute a Flask Python App which does the following: pull the repo and jekyll build. This app doesn't parse the POST request.</div><div><br></div><div>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.</div><div><br></div><div>We can apply the same procedure for <a href="http://turtleartday.org">turtleartday.org</a>.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="gmail-HOEnZb"><font color="#888888"><div class="gmail_extra"><div><br></div>-- <br><div>Cheers<br>Dave</div>
</div></font></span></div>
</blockquote></div><br></div></div>