A sample Sinatra application to deploy to Cloud Foundry which works out of the box.
- Install Ruby
- Install Bundler (accomplish this by running
gem install bundler
) - Run
bundle install
- Run
bundle exec ruby app.rb -p 3000
- Visit http://localhost:3000
- Install the cf CLI
- Run
cf push my-ruby-app -m 64M --random-route
- Visit the given URL