Skip to content

CF very simple example app based on Ruby framework: Sinatra

License

Notifications You must be signed in to change notification settings

king-kt/cf-example-sinatra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Foundry Ruby Example application

This is a simple Sinatra 'Hello World' web application.

Instructions

Download this app

$ git clone https://github.com/Altoros/cf-example-sinatra.git
$ cd cf-example-sinatra

Deploy to Cloud Foundry

This step requires you to have Cloud Foundry CLI installed. You can download it from: https://github.com/cloudfoundry/cli/blob/master/README.md#installers

Log into your Cloud Foundry

$ cf login -a <paas api url. Warning: default is https, specify http:// if necesary> -u <user/email> -p <pass>

Push

$ cf push cf-example-sinatra

Note: it is possible that this application name is already in use. Change it if you get that error.

If you want to change the memory to allocate to this app:

$ cf push -m 64m cf-example-sinatra

And that is it. Your (probably) first app deployed into a PaaS :)

Credits

Thanks @mgarciap for the original example!

About

CF very simple example app based on Ruby framework: Sinatra

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 36.7%
  • HTML 33.2%
  • CSS 30.1%