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.
- Ruby 2.6
- PostgreSQL 11
- Automatic TLS certificates
- Bundler-based build
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 toconfig/database.yml.example
. It is not needed as the database will be configured by the helper gem. For local development you can create adatabase.yml
file to configure as needed. It has been added to.gitignore
so it won't get committed to Git.