Difference between revisions of "Service/www"
m |
(Update to 2016 reality) |
||
Line 2: | Line 2: | ||
== Description == | == Description == | ||
− | + | The SugarLabs front page. | |
− | + | Managed with the Jekyll CMS, it contains static articles describing the project. | |
− | |||
− | |||
− | |||
− | |||
− | |||
== Hostnames == | == Hostnames == | ||
− | * http://www | + | * http://www.sugarlabs.org |
== Hosted on == | == Hosted on == | ||
[[Machine/sunjammer]] | [[Machine/sunjammer]] | ||
− | |||
== Administrative contact == | == Administrative contact == | ||
− | |||
+ | marketing AT sugarlabs DOT org | ||
== Sysadmins == | == Sysadmins == | ||
− | + | Send email to the systems sugar labs list. | |
+ | |||
+ | == Notes == | ||
+ | |||
+ | In https://github.com/sugarlabs/www-sugarlabs/settings/hooks there is a webhook defined, as documented at https://developer.github.com/webhooks/ | ||
+ | |||
+ | This sends 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, which 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. | |
== Upgrade notes == | == Upgrade notes == | ||
− | + | Remember to restart the org.sugarlabs.www-rebuilder container after upgrading freedom. | |
+ | |||
[[Category:Service|www]] | [[Category:Service|www]] |
Revision as of 23:52, 26 July 2016
Description
The SugarLabs front page.
Managed with the Jekyll CMS, it contains static articles describing the project.
Hostnames
Hosted on
Administrative contact
marketing AT sugarlabs DOT org
Sysadmins
Send email to the systems sugar labs list.
Notes
In https://github.com/sugarlabs/www-sugarlabs/settings/hooks there is a webhook defined, as documented at https://developer.github.com/webhooks/
This sends 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, which 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.
Upgrade notes
Remember to restart the org.sugarlabs.www-rebuilder container after upgrading freedom.