[postgis-tickets] [PostGIS] #3517: HTTP 403 Forbidden at http://postgis.net/casestudy/
PostGIS
trac at osgeo.org
Sun Jul 17 09:00:08 PDT 2016
#3517: HTTP 403 Forbidden at http://postgis.net/casestudy/
----------------------+----------------------------
Reporter: dbaston | Owner: robe
Type: defect | Status: closed
Priority: medium | Milestone: Management 2.0
Component: website | Version: 2.2.x
Resolution: fixed | Keywords:
----------------------+----------------------------
Changes (by robe):
* status: new => closed
* resolution: => fixed
Comment:
I finally got tired of this error, and revised the script to only do an
svn update and rebuild website if svn is newer than disk.
So script changed to:
{{{
#! /bin/bash
REMOTE_REPO="https://svn.osgeo.org/postgis/web"
LOCAL_REPO="/var/www/postgis_website"
REMOTE_REV=`svn info $REMOTE_REPO | grep '^Revision:' | awk '{print $2}'`
LOCAL_REV=`svn info $LOCAL_REPO | grep '^Revision:' | awk '{print $2}'`
if [ $REMOTE_REV -eq $LOCAL_REV ]; then
exit 0;
else
cd /var/www/postgis_website
rm -rf _counter/*
/usr/bin/svn -q update
#rm -rf _counter/*
./_piecrust_1.2.0/bin/chef bake
#for some reason baking once is not enough to bring back _counter
./_piecrust_1.2.0/bin/chef bake
chown -R www-data:www-data _cache _counter
fi
}}}
should significantly minimize this issue since it won't be happening every
5 minutes anymore, but only in the 20 second winodw when someone actually
makes a commit to svn.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3517#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list