Skip to content
Redu helpdesk
Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
deploy
doc
lang
lib
public
script
solr/conf
spec
vendor
.gitignore
.rspec
.rvmrc
Gemfile
Gemfile.lock
README
README.md
Rakefile
config.ru

README.md

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
Something went wrong with that request. Please try again.