An open API service indexing awesome lists of open source software.

https://github.com/swisscom/cf-default-app-ruby

The default Ruby app that will be pushed in the Swisscom Application Cloud if no source code is provided
https://github.com/swisscom/cf-default-app-ruby

cloud-foundry hacktoberfest ruby sinatra swisscom-application-cloud

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](http://www.sinatrarb.com/)

## Run locally

1. Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/)
1. Install Bundler with `gem install bundler`
1. Run `bundle install`
1. Run `bundle exec ruby app.rb -p 3000`
1. Visit [http://localhost:3000](http://localhost:3000)

## Run in the cloud

1. Install the [cf CLI](https://github.com/cloudfoundry/cli#downloads)
1. Run `cf push --random-route`
1. Visit the given URL

## Create ZIP

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