To run a modular Sinatra app, you need to include a config.ru
file where you specify:
- The main file that will be used as the entry point.
- The main module that will run (remember that modular Sinatra apps can have multiple “apps”).
ruby
# config.ru require File.join(File.dirname(__FILE__), 'app.rb') run LivingCostCalc::App
Leave a Reply