Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Commit

Permalink
datafile now included in snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
benfoxall committed Nov 2, 2012
1 parent 03ca176 commit 12f6e7f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions _static_snapshot.sh
Expand Up @@ -4,6 +4,7 @@ rm -r localhost\:3000

wget --html-extension -p -k http://localhost:3000/
wget --html-extension -p -k http://localhost:3000/filter/SectorCategory
wget --html-extension -p -k http://localhost:3000/data-file?Funder=GB&Country=AF&view=false
wget --html-extension -p -k http://localhost:3000/activities?SectorCategory=311
wget --html-extension -p -k http://localhost:3000/activity/GB-CHC-285776-ZIM349

Expand All @@ -15,10 +16,14 @@ cp -r public/images localhost\:3000/images

# update stylesheets to use relative images
find localhost\:3000/stylesheets/*.css -exec sed -i remove 's/http:\/\/localhost:3000/../g' {} \;

rm localhost\:3000/stylesheets/*.cssremove

rm localhost\:3000/stylesheets/robots.txt
# change the iframes to point to a particular ip address
#find localhost\:3000/*.html -exec sed -i remove 's/localhost:3000/192\.168\.1\.132:3000/g' {} \;
#find localhost\:3000/activity/*.html -exec sed -i remove 's/localhost:3000/192\.168\.1\.132:3000/g' {} \;

rm localhost\:3000/*.htmlremove
rm localhost\:3000/activity/*.htmlremove


mv public/robots.x public/robots.txt
mv public/robots.x public/robots.txt

0 comments on commit 12f6e7f

Please sign in to comment.