Clasic Q/A
- Ruby 2.2.1
- PostgreSQL
- Sphinx
- Redis
- Clone poject
- Run bundler:
$ bundle install
Create database.yml:
$ cp config/database.yml.sample config/database.yml
$ bundle exec rake db:create db:migrate
- Run application: #(please use different terminal tabs for each comand)
$ rails s -p 3000
$ rackup private_pub.ru -s thin -E production #(websocket actions)
$ redis-server #(background jobs)
$ sidekiq #(background jobs)
$ rake ts:index ts:start #(indexes and starts the Sphinx)
To execute tests, run following commands:
$ bundle exec rake db:migrate RAILS_ENV=test #(the first time only)
$ bundle exec rspec
The software is available as open source under the terms of the MIT License.