The default Ruby app that will be pushed in the Swisscom Application Cloud if no source code is provided.
Based on Sinatra
- Install Ruby
- Install Bundler with
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 --random-route
- Visit the given URL
- Run
zip -r ruby_app.zip public views app.rb config.ru Gemfile Gemfile.lock