The local copy of the app.rb (with appropriate REDIS_URL changes) works fine with this invocation:
bundle exec ruby ./app.rb
When deploying to cfoundry, my main view and all of my routes are broken (404s)
I snagged the startup invocation from here:
https://github.com/cloudfoundry/vcap/blob/master/cloud_controller/staging/sinatra/plugin.rb#L21
Noah is a modular sinatra app inheriting from SinatraBase. All the routes are imported in the main app file:
https://github.com/lusis/Noah/blob/master/lib/noah/app.rb
When I deploy to Heroku, for instance, I use a rackup file like so:
require 'rubygems'
require 'sinatra'
require 'noah'
ENV['REDIS_URL'] = "<my openredis url>"
noah = Noah::App.new do
set :run, false
set :environment, :production
end
run noah
The Gemfile just has one gem required - 'noah'
The updated-app.rb works. Getting auth issues with redis but that's okay for now.