OpenAddressesUK / sorting_office

A Sinatra app that takes an address string and breaks it into its constituent parts
8 stars 5 forks source link

Add Readme and bootstrap script #3

Closed pezholio closed 9 years ago

pezholio commented 9 years ago

I've added a Readme with basic information on how to use the service, as well as information on getting it running in development, and a bootstrap script (rake bootstrap).

I've uploaded the DB dump of reference tables to the Open Addresses S3 account, so the bootstrap script downloads this, imports the relevant collections, and runs the elasticsearch indexes, then cleans up after itself.

If someone could test this out before merging, that'd be great!

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling 3951e53d24d3b54357844fb1e43deeca122e18c2 on feature-add-readme-and-bootstrap-script into 31209b44bcd48b11ce11530f302e35e406f22146 on master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling 3951e53d24d3b54357844fb1e43deeca122e18c2 on feature-add-readme-and-bootstrap-script into 31209b44bcd48b11ce11530f302e35e406f22146 on master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling 5a1e25851888029d0c8b82eca2bea380769fd63c on feature-add-readme-and-bootstrap-script into 31209b44bcd48b11ce11530f302e35e406f22146 on master.

pikesley commented 9 years ago

This needs a local ElasticSearch I presume?

pezholio commented 9 years ago

Das ist richtig :+1:

pikesley commented 9 years ago

OH GOD JAVA

pezholio commented 9 years ago

:runner: :japanese_ogre:

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling 80b346268899c9b73f78f68da01786500fd5ac9d on feature-add-readme-and-bootstrap-script into 31209b44bcd48b11ce11530f302e35e406f22146 on master.

pikesley commented 9 years ago
➔  bundle exec rake bootstrap
Downloading the database dump...
Extracting the files...
Importing the data...
sh: line 1: 17068 Abort trap: 6           mongorestore --db distiller ./dump/distiller 2>&1
Running the indexes...
Cleaning up...
Done!

Is that right?

pezholio commented 9 years ago

Can you try rspec spec/big_old_list_spec.rb? If you get 8 fails, we're good.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling a333b3f9341a2e007f1c4407e3c5af478872a44c on feature-add-readme-and-bootstrap-script into 31209b44bcd48b11ce11530f302e35e406f22146 on master.

pikesley commented 9 years ago

25 examples, 25 failures

pezholio commented 9 years ago

Ah fucksticks. Something wrong with the mongoimport then I think. Can you try the steps in the Rakefile manually? (without supressing the output)

pikesley commented 9 years ago

I will try this again

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling 0eb8aa6b090c25d8c6900c80624cc2935efea539 on feature-add-readme-and-bootstrap-script into \ on master**.

pikesley commented 9 years ago
➔ bundle exec rake bootstrap
Downloading the database dump...
Extracting the files...
Importing the data...
Running the indexes...
Cleaning up...
Done!

FTW

pikesley commented 9 years ago
➔ rspec spec/big_old_list_spec.rb
.F..F.F......F.F.F...F.F.

Finished in 2.3 seconds (files took 2.03 seconds to load)
25 examples, 8 failures

Win