A dead simple Sinatra app. I use this app for testing simple-passenger-cookbook.
-
Clone the app
git clone [email protected]:atheiman/simple-sinatra.git
-
Install dependencies with Bundler
# gem install bundler bundle
-
Run the app
bundle exec passenger start
docker build -t simple-sinatra:some-tag .
docker run --rm -p 3000:3000 simple-sinatra:some-tag
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