Skip to content

redu/help-center

Folders and files

NameName
Last commit message
Last commit date
May 2, 2013
Nov 20, 2012
Nov 12, 2012
Mar 19, 2013
Oct 16, 2012
Nov 16, 2012
Nov 26, 2012
Nov 16, 2012
Nov 7, 2012
Oct 25, 2012
Nov 16, 2012
Nov 21, 2012
Nov 17, 2012
Oct 17, 2012
Nov 17, 2012
Mar 18, 2013
Mar 19, 2013
Oct 16, 2012
Nov 16, 2012
Oct 16, 2012
Oct 16, 2012

Repository files navigation

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