Installation and configuration:
Dependencies (install via your favorite package manager): mysql, phantomjs
java - for solr, your OS should take care of updating this when you start running the solr commands
- Clone the repository
- Create poliana_development database on your local installation of mysql
- Make a config/database.yml file as a copy of database-sample.yml
- Update database.yml with your local mysql information
- Install latest version of ruby 1.9.3 using rvm (rvm install 1.9.3, rvm use 1.9.3)
- Create the poliana gemset for this version of ruby (rvm gemset create poliana, rvm gemset use poliana)
- bundle install
- rake db:migrate
- rake db:test:prepare
- guard # Runs the test suite
- rake sunspot:solr:start # starts the local solr search server
- rake sunspot:reindex # Updates your search indexing to include the lastest database records
If your tests are passing, you're ready to go!
Deployment:
Make sure AWS Configuration is set up in the Environment variables (key and secret)