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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-16 17:16:33 +02:00
views add styles 2016-04-04 22:10:09 +02:00
.gitignore add .sass-cache to gitignore 2016-04-10 17:19:32 +02:00
app.rb add comments 2016-04-11 23:51:17 +02:00
CODE_OF_CONDUCT.md Compliance bulk update. Add CODE_OF_CONDUCT.md 2024-10-16 17:16:33 +02:00
config.ru switch to sinatra 2016-04-04 18:59:32 +02:00
CONTRIBUTING.md Compliance bulk update. Add CONTRIBUTING.md 2024-10-16 17:16:32 +02:00
Gemfile remove ruby version 2016-04-18 17:06:29 +02:00
Gemfile.lock Remove Procfile 2016-11-07 12:04:02 +01:00
LICENSE Add license file 2017-05-29 11:43:29 +02:00
README.md Remove Procfile 2016-11-07 12:04:02 +01:00

CF Sample App Ruby

A sample Sinatra application to deploy to Cloud Foundry which works out of the box.

Run locally

  1. Install Ruby
  2. Install Bundler (accomplish this by running 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 my-ruby-app -m 64M --random-route
  3. Visit the given URL