The default Ruby app that will be pushed in the Swisscom Application Cloud if no source code is provided | Read-only mirror of https://github.com/swisscom/cf-default-app-ruby — Swisscom. Issues & pull requests at the source.
  • HTML 91.6%
  • Ruby 8.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-16 17:15:26 +02:00
public Upgrade SDX to 1.4 2017-12-04 12:25:29 +01:00
views Migrate to SDX 2017-06-09 15:48:41 +02:00
.cfignore Migrate to SDX 2017-06-09 15:48:41 +02:00
.gitignore Migrate to SDX 2017-06-09 15:48:41 +02:00
app.rb Migrate to SDX 2017-06-09 15:48:41 +02:00
CODE_OF_CONDUCT.md Compliance bulk update. Add CODE_OF_CONDUCT.md 2024-10-16 17:15:26 +02:00
config.ru Migrate to SDX 2017-06-09 15:48:41 +02:00
CONTRIBUTING.md Compliance bulk update. Add CONTRIBUTING.md 2024-10-16 17:15:25 +02:00
Gemfile allow ruby versions 2.x 2018-09-21 10:19:31 +02:00
Gemfile.lock Merge branch 'master' into dependabot/bundler/rack-2.2.6.4 2023-03-17 14:27:48 +01:00
LICENSE Migrate to SDX 2017-06-09 15:48:41 +02:00
manifest.yml chore: use buildpacks in manifest.yml 2020-04-03 16:55:08 +02:00
README.md Migrate to SDX 2017-06-09 15:48:41 +02:00

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

Run locally

  1. Install Ruby
  2. Install Bundler with 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 --random-route
  3. Visit the given URL

Create ZIP

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