Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 680 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 680 Bytes

CF Default App Ruby

The default Ruby app that will be pushed in the Swisscom Application Cloud if no source code is provided.

Based on Sinatra

Run locally

  1. Install Ruby
  2. Install Bundler with gem install bundler
  3. Run bundle install
  4. Run bundle exec ruby app.rb -p 3000
  5. Visit http://localhost:3000

Run in the cloud

  1. Install the cf CLI
  2. Run cf push --random-route
  3. Visit the given URL

Create ZIP

  1. Run zip -r ruby_app.zip public views app.rb config.ru Gemfile Gemfile.lock