@@ -16,7 +16,7 @@ year = form.getfirst('year') | |||||
authority_name = "Doncaster Metropolitan Borough Council" | authority_name = "Doncaster Metropolitan Borough Council" | ||||
authority_short_name = "Doncaster" | authority_short_name = "Doncaster" | ||||
base_url = "http://maps.doncaster.gov.uk/publicaccess/tdc/" | |||||
base_url = "http://local.doncaster.gov.uk/PublicAccess/tdc/" | |||||
#print "Content-Type: text/html" # HTML is following | #print "Content-Type: text/html" # HTML is following | ||||
@@ -1,4 +1,4 @@ | |||||
#!/bin/bash | |||||
#!/usr/local/bin/bash | |||||
export PLANNING_ROOT="/data/vhost/www.planningalerts.com/" | export PLANNING_ROOT="/data/vhost/www.planningalerts.com/" | ||||
export PLANNING_BACKUPS="$PLANNING_ROOT/backups/" | export PLANNING_BACKUPS="$PLANNING_ROOT/backups/" | ||||
@@ -7,4 +7,6 @@ export DEPLOYMENT_LOG="$DEPLOYMENT_LOG_DIRECTORY/deployment_log" | |||||
export BACKUP_DIRECTORY_NAME="planningalerts_backup_`date +%F_%Hh%Mm%Ss`" | export BACKUP_DIRECTORY_NAME="planningalerts_backup_`date +%F_%Hh%Mm%Ss`" | ||||
export BACKUP_DIRECTORY="$PLANNING_BACKUPS$BACKUP_DIRECTORY_NAME/" | |||||
$SHELL deployment_script_common | $SHELL deployment_script_common |
@@ -1,15 +1,5 @@ | |||||
#!/bin/bash | #!/bin/bash | ||||
PLANNING_ROOT="/data/vhost/www.planningalerts.com/" | |||||
PLANNING_BACKUPS="$PLANNING_ROOT/backups/" | |||||
DEPLOYMENT_LOG_DIRECTORY="$PLANNING_ROOT/logs/" | |||||
DEPLOYMENT_LOG="$DEPLOYMENT_LOG_DIRECTORY/deployment_log" | |||||
BACKUP_DIRECTORY_NAME="planningalerts_backup_`date +%F_%Hh%Mm%Ss`" | |||||
# This will be the name of the new backup directory | |||||
BACKUP_DIRECTORY=$PLANNING_BACKUPS$BACKUP_DIRECTORY_NAME | |||||
# Check to see if the PLANNING_ROOT directory exists and is writable | # Check to see if the PLANNING_ROOT directory exists and is writable | ||||
if ! [ -w $PLANNING_ROOT ]; | if ! [ -w $PLANNING_ROOT ]; | ||||
then | then | ||||
@@ -47,6 +37,11 @@ cp -R data $BACKUP_DIRECTORY; | |||||
echo "Done" | echo "Done" | ||||
echo | echo | ||||
echo "Generating python scrapers" | |||||
# Generate the python cgi files | |||||
(cd python_scrapers; ./generateCGIScripts.py) | |||||
echo "Done generating python scrapers" | |||||
# Copy the new versions of docs, cgi-bin and tools to PLANNING_ROOT | # Copy the new versions of docs, cgi-bin and tools to PLANNING_ROOT | ||||
echo "Deploying the new versions of docs, cgi-bin, and tools" | echo "Deploying the new versions of docs, cgi-bin, and tools" | ||||
cp -R docs cgi-bin tools $PLANNING_ROOT | cp -R docs cgi-bin tools $PLANNING_ROOT | ||||
@@ -79,7 +79,6 @@ | |||||
"Teignbridge District Council", "Teignbridge", "http://213.152.63.161/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | "Teignbridge District Council", "Teignbridge", "http://213.152.63.161/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | ||||
"West Berkshire Council", "West Berkshire", "http://ww2.westberks.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | "West Berkshire Council", "West Berkshire", "http://ww2.westberks.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | ||||
"Bolsover District Council", "Bolsover", "http://217.158.161.181/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | "Bolsover District Council", "Bolsover", "http://217.158.161.181/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | ||||
"Doncaster Metropolitan Borough Council", "Doncaster", "http://maps.doncaster.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | |||||
"Dundee City Council", "Dundee", "http://bwarrant.dundeecity.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | "Dundee City Council", "Dundee", "http://bwarrant.dundeecity.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser" | ||||
"Durham City Council", "Durham", "http://publicaccess.durhamcity.gov.uk/publicaccess/dc/", "PublicAccess", "PublicAccessParser" | "Durham City Council", "Durham", "http://publicaccess.durhamcity.gov.uk/publicaccess/dc/", "PublicAccess", "PublicAccessParser" | ||||
"East Dorset District Council", "East Dorset", "http://193.243.228.16/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" | "East Dorset District Council", "East Dorset", "http://193.243.228.16/PublicAccess/tdc/", "PublicAccess", "PublicAccessParser" | ||||