mirror of
https://github.com/swisscom/cf-sample-app-ruby.git
synced 2026-12-04 16:28:47 +00:00
A sample Sinatra application to deploy to Cloud Foundry which works out of the box. | Read-only mirror of https://github.com/swisscom/cf-sample-app-ruby — Swisscom. Issues & pull requests at the source.
- Ruby 59.2%
- Haml 28.1%
- SCSS 12.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| views | ||
| .gitignore | ||
| app.rb | ||
| CODE_OF_CONDUCT.md | ||
| config.ru | ||
| CONTRIBUTING.md | ||
| Gemfile | ||
| Gemfile.lock | ||
| LICENSE | ||
| README.md | ||
CF Sample App Ruby
A sample Sinatra application to deploy to Cloud Foundry which works out of the box.
Run locally
- 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
Run in the cloud
- Install the cf CLI
- Run
cf push my-ruby-app -m 64M --random-route - Visit the given URL