Court photos are resized when uploaded. This requires an install of ImageMagick on your environment. Install manually using from [http://www.imagemagick.org/script/index.php] or [http://cactuslab.com/imagemagick/].
Note the path to ImageMagick and run the following line (replacing with your path to ImageMagick) before running bundle install. The below example is based on a
which convert output of
deployment repository for instructions on how to clone production data.
To add all court and address data run:
You can see a list of individual import tasks by running
Then source all the court images from the existing website:
Generating Map Locations
After court data has been imported, some courts may be missing their map locations. The locations can be generated from their post codes of the visiting addresses and imported by running:
RAILS_ENV=production rake import:map_location
Some post codes are not recognised by the default map location provider. For them, please use Google Maps Labs and enter their location manually in the file below before re-running the script.
To get access to the admin area you will then need to create the first user manually via the rake task:
rake "admin:create[firstname.lastname@example.org, the_password, Sue Denim]"