Revision: 285 http://svn.sv.gnu.org/viewvc/?view=rev&root=administration&revision=285 Author: agn Date: 2016-12-01 04:38:09 +0000 (Thu, 01 Dec 2016) Log Message: ----------- HomepageUpload: update web-page update triggering info
Modified Paths: -------------- trunk/sviki/HomepageUpload.mdwn Modified: trunk/sviki/HomepageUpload.mdwn =================================================================== --- trunk/sviki/HomepageUpload.mdwn 2016-11-27 02:49:16 UTC (rev 284) +++ trunk/sviki/HomepageUpload.mdwn 2016-12-01 04:38:09 UTC (rev 285) @@ -59,9 +59,38 @@ ([[SavannahInternals]]). Do this on the vcs machine (though probably it does not technically matter). - # T=gnu or T=nongnu + # T=gnu or T=non-gnu # PROJ=project identifier vcs$ curl http://www.gnu.org/new-savannah-project/new.py \ -s -F type=$T -F project=$PROJ +A successful call should result in an empty HTTP-200, e.g.: + + # curl -D /dev/stderr http://www.gnu.org/new-savannah-project/new.py -s -F type=non-gnu -F project=pretest 2>&1 + HTTP/1.1 100 Continue + + HTTP/1.1 200 OK + Date: Thu, 01 Dec 2016 04:29:15 GMT + Server: Apache/2.4.7 + Access-Control-Allow-Origin: (null) + Cache-Control: max-age=0 + Expires: Thu, 01 Dec 2016 04:29:15 GMT + Content-Length: 0 + Content-Type: text/html + Content-Language: en + It may take more than one call, a few minutes apart. + +NOTES: +1. The script `new.py` will return HTTP-404 (page not found) on + any errors! That's not only confusing, but also hard to troubleshoot. + The 404 errors are sent back to apache, which in turns renders + an entire www.gnu.org "page not found" template. +2. The script `new.py` will return HTTP-404 (page not found) + if the project name is invalid, or if the type is invalid + (e.g. not "gnu" or "non-gnu"). +3. A copy of the script can be found in + `fencepost:/srv/data/www-mirror/new-savannah-project/new.py`. +4. A copy of the relevant apache configuration can be found in + `fencepost:/srv/data/www-config/sites-available/www.gnu.org-common` + (search for "new.py").