Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 599 Bytes

File metadata and controls

27 lines (23 loc) · 599 Bytes

Sample Ruby

Run Locally:

  1. Install Ruby
  2. Install Bundler
    gem install bundler
    
  3. Install application dependencies
    bundle install
    
  4. Run the server locally:
    ruby app.rb -p 8080
    

Run Locally with Buildpacks & Docker:

pack build --builder=gcr.io/buildpacks/builder sample-ruby
docker run -it -ePORT=8080 -p8080:8080 sample-ruby

Run on Cloud Run:

Run on Google Cloud