Rails on App Engine: Tips and Tricks

Aja Hammerly
Mar 9, 2017 · 4 min read

Basic Architecture and Gems Used

Common Gotchas

Database Creation and Migrations

Environment Variables

# secrets.yml

development:
secret_key_base: 2b8e0636d75c...

test:
secret_key_base: d9d3ba88a59a...

# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
# app.yaml

entrypoint: bundle exec rackup -p $PORT
env: flex
runtime: ruby
health_check:
check_interval_sec: 10
env_variables:
SECRET_KEY_BASE: 'your_key_goes_here'

Assets

Advantages

Debugging

Auto-scaling

Learn More

Aja Hammerly

Written by

Rubyist, Data Nerd, Lazy Dev, Stegosaurus. Cloud Developer Advocate @ Google. Disclaimer: My opinions are my own. *RAWR*

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade