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
- Host: GitHub
- URL: https://github.com/swisscom/cf-default-app-ruby
- Owner: swisscom
- License: other
- Created: 2016-06-21T14:42:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:15:27.000Z (over 1 year ago)
- Last Synced: 2025-01-19T00:29:00.886Z (over 1 year ago)
- Topics: cloud-foundry, hacktoberfest, ruby, sinatra, swisscom-application-cloud
- Language: HTML
- Homepage:
- Size: 5.46 MB
- Stars: 0
- Watchers: 35
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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`