github/gollum — Issue #254: Sporadic load errors on shared host
Author: rnkn
Created: 2011-12-21 02:16:05+00:00
State: open

Question: I'm running Gollum on a DreamHost shared hosting environment and it works great most of the time, but I get a load error every half-dozen loads or so to the tune of `no such file to load -- gollum/frontend/app`

My config.ru is below. I've tried every permutation (in the Gist) with similar results. Any ideas? Is this just a limitation of the host?

```
#!/usr/bin/ruby
ENV['GEM_HOME'] = '/home/USERNAME/.gems'
ENV['GEM_PATH'] = '$GEM_HOME:/usr/lib/ruby/gems/1.8'
require 'rubygems'
require 'rack'
require 'sinatra'
require 'gollum/frontend/app'
Gem.clear_paths

system("which git") or raise "Looks like I can't find the git CLI in your path.\nYour path is: #{ENV['PATH']}"

disable :run

configure :development, :staging, :production do
set :raise_errors, true
set :show_exceptions, true
set :dump_errors, true
set :clean_trace, true
end

Precious::App.set(:gollum_path, '/home/USERNAME/git/wiki.git')
Precious::App.set(:wiki_options, {})

run Precious::App
```

https://gist.github.com/1471392