gohanlon / 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":

Home Page:https://cloud.google.com/ruby/rails/appengine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://cloud.google.com/ruby/rails/appengine

License:MIT License


Languages

Language:Ruby 73.2%Language:HTML 18.5%Language:JavaScript 4.2%Language:CSS 2.6%Language:CoffeeScript 0.7%Language:SCSS 0.6%