Last active
February 12, 2023 18:40
-
-
Save woodie/704f4fb60e8f67059bc4a98175cdbb8e to your computer and use it in GitHub Desktop.
App Engine STandard Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app.rb | |
require "sinatra" | |
get "/status" do | |
<<~HTML | |
<h1>Hello Status!</h1> | |
<img src="images/cloud.png"> | |
<p>The environment is #{ENV['APP_ENV'] || 'unknown'}.</p> | |
HTML | |
end | |
__END__ | |
# app.yaml | |
runtime: ruby30 | |
entrypoint: bundle exec ruby app.rb | |
# Memory CPU Instance hour | |
# F1 128 MB 600 MHz $0.05 - $0.07 default | |
# F2 256 MB 1.2 GHz $0.10 - $0.13 | |
# F4 512 MB 2.4 GHz $0.20 - $0.26 | |
instance_class: F2 | |
skip_files: | |
- .git/ | |
- downloads/ | |
- node_modules/ | |
handlers: | |
- url: / | |
static_files: webapp/index.html | |
upload: webapp/index.html | |
- url: /(.+\.(webapp)) | |
static_files: webapp/manifest.webapp | |
upload: webapp/manifest.webapp | |
mime_type: application/x-web-app-manifest+json | |
expiration: "0s" | |
- url: /status | |
script: auto | |
- url: /(.+) | |
static_files: webapp/\1 | |
upload: webapp/(.+) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment