Skip to content
Robert R. Meyer edited this page Nov 20, 2013 · 2 revisions

You can configure and run Oculus using a rackup file.

Here is a sample config.ru:

require 'oculus'
require 'oculus/server'
Oculus.connection_options = {
:adapter => 'mysql',
:database => 'my_db',
:host => 'my_host', # default: localhost
:username => 'my_user',
:password => 'my_password'
}
Oculus.cache_path = File.join(File.dirname(__FILE__), 'tmp', 'data')
run Oculus::Server

Clone this wiki locally