One way to do sinatra modules with unicorn - based on our homepage implementation
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
modules
public
spec
.rspec
.rvmrc
Gemfile
Gemfile.lock
LICENSE.MIT
Procfile
README
Rakefile
config.ru
module_loader.rb
unicorn

README

Sinatra Unicorn Template

---

Conventionally this is organized as follows

Sinatra Modules go in

./modules/module_name.rb

Sinatra Module Views go in

./modules/module_name/views

Example

./modules/site.rb
./modules/site/views/main.erb
./modules/site/views/layout.erb

---

Public Assets directory is public/

public/
is served as /

---

to run specs

rake

---

to run it locally:

    bundle
    foreman start