Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.47 KB

README.md

File metadata and controls

61 lines (48 loc) · 1.47 KB

Redu Help-Center

This is the help-center repository for Redu.

Setup

Populate database

First you should create the database, you need the file config/database.yml with the configurations and run

rake db:create
rake db:migrate
rake db:test:prepare

To populate database just run the task:

rake populate:minimun

Sunspot / Solr

Once Solr server is properly installed you may run it. If you're using Sunspot Solr Gem it can be easily done with the following rake task:

rake sunspot:solr:start # or sunspot:solr:run if you want it on foreground

What about if you already have data in your database? Run reindex!

rake sunspot:reindex

To run the tests you should run the server in this environment:

rake sunspot:solr:run RAILS_ENV=test

Authentication

To create or edit some admin route you should authenticate first. To do this you need a file called config/user.yml:

user_id: "user"
user_password: "password"

Static assets and AWS

In production mode it's necessary to create a file confi/s3.ym in order to styc compiled assets to Amazon S3 bucket.

production:
  access_key_id: 'xxx'
  secret_access_key: 'xxx'
  bucket: 'xxx'

More information is avalible here.

Technologies and Versions

  • Ruby 1.9.3
  • Rails 3.2.5
  • MySQL Database Manager