Savitri Developer Install Guide
This guide is aimed at advanced Rails developers who have installed their own Rails apps before.
First Steps
- Install and configure PostgreSQL 9.1+.
- Run
postgres -V
to see if you already have it.
- Make sure that
psql
command exists as we use this in seed.rb
- Make sure that the server's messages language is English; this is required by the ActiveRecord Postgres adapter.
- Install and configure Redis 2+.
- Run
redis-server -v
to see if you already have it.
- Install ImageMagick
- Install rvm with Ruby 1.9.3-p484 and Bundler.
- Clone the project and bundle.
- create config/application.yml from config/application.yml.sample and add all keys.
To generate secret token you can use
rake secret
- create config/database.yml from config/database.yml.sample.
Before you start Rails
bundle install
bundle exec rake sunspot:solr:start
bundle exec rake db:create db:migrate
bundle exec rake admin:create
bundle exec rake db:seed
bundle exec rails server
Solr indexing and troubleshooting
- Run rake task
bundle exec rake sunspot:solr:index
to index your data in solr.
It will take time for indexing as database is huge.
- If any errors while indexing try to remove all index, stop solr and reindex again.
SO answer
You should now be able to connect to rails on http://localhost:3000 - try it out!