Loading a Modular Sinatra App into Padrino

15 views
Skip to first unread message

Francisco Cabrita

unread,
Jan 3, 2012, 3:04:57 PM1/3/12
to pad...@googlegroups.com
Hi,

I'm starting with Padrino so I didn't have read all documentation yet.

Now, Is there any way to load a Modular Sinatra app into Padrino.

Usually I load multiple Sinatra apps under config.ru with different paths. Something like:

require 'bundler/setup'
Bundler.require(:default)

require File.dirname(__FILE__) + "/main.rb"
require File.dirname(__FILE__) + "/lib/nagiosql.rb" 
  
map('/') { run Yasi::Main } 
 
map('/nagiosql') { run Yasi::Nagiosql::Main } 
 
map('/resque') { run Resque::Server } 

In this case I want to build the base app under Padrino and additional modules in Sinatra.

Any nice URL for me to follow?

Thanks in advance,
Francisco




Reply all
Reply to author
Forward
0 new messages