platformsh-templates / rails

Ruby on Rails template for Platform.sh.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby on Rails for Platform.sh

Deploy on Platform.sh

This template builds Ruby on Rails 5 on Platform.sh. It includes a bridge library that will auto-configure most databases and services, and ships with PostgreSQL out of the box. Otherwise it is the same as the result of running "rails new".

Rails is an opinionated rapid application development framework written in Ruby.

Features

  • Ruby 2.6
  • PostgreSQL 11
  • Automatic TLS certificates
  • Bundler-based build

Customizations

The following changes have been made relative to a rails new generated project. If using this project as a reference for your own existing project, replicate the changes below to your project.

  • The .platform.app.yaml, .platform/services.yaml, and .platform/routes.yaml files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit.
  • The Platform.sh Rails helper library has been installed via Bundler. It provides automatic configuration of most databases and services out fo the box.
  • The config/database.yml file has been moved to config/database.yml.example. It is not needed as the database will be configured by the helper gem. For local development you can create a database.yml file to configure as needed. It has been added to .gitignore so it won't get committed to Git.

References

About

Ruby on Rails template for Platform.sh.


Languages

Language:HTML 92.5%Language:Ruby 6.3%Language:JavaScript 1.1%Language:CSS 0.2%