/rails-on-app-engine-sample

Sample Rails app to run on Google App Engine following the tutorial "Running Rails 5 on the Google App Engine flexible environment":

Primary LanguageRubyMIT LicenseMIT

Ruby on Google App Engine Sample

Sample Rails app to run on Google App Engine following the Running Rails 5 on the Google App Engine flexible environment.

Command Quick Reference

Note: The following assumes that you've created a project in Google Cloud Platform Console, enabled billing for your project, and installed the Google Cloud SDK.

# Additional steps before for first deploy
bundle
sed s/SOMETHING_SECRET/$(bundle exec rails secret)/g app.yaml.sample > app.yaml
gcloud app create

# Deploy
RAILS_ENV=production bundle exec rails assets:precompile
gcloud app deploy

# Useful after deploy
gcloud app browse
gcloud app logs read