Skip to content

atheiman/simple-sinatra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Sinatra

A dead simple Sinatra app. I use this app for testing simple-passenger-cookbook.

Running the App

Local Dev

  1. Clone the app

    git clone [email protected]:atheiman/simple-sinatra.git
  2. Install dependencies with Bundler

    # gem install bundler
    bundle
  3. Run the app

    bundle exec passenger start

With Docker

docker build -t simple-sinatra:some-tag .
docker run --rm -p 3000:3000 simple-sinatra:some-tag

Production

In production, steps two and three look a little different.

# install dependencies
bundle install --deployment --without development test

# run the app using configuration in a Passengerfile.json (https://www.phusionpassenger.com/library/config/standalone/reference/)
bundle exec passenger start

About

Simple example Sinatra web app.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages