Warning
This repository is no longer maintained by our internal teams.
The template is provided as is and will not receive updates, bug fixes, or new features.
You are welcome to contribute on it or fork the repository and modify it for your own use.
To deploy this template on Upsun, you can use the command upsun project:convert
on this codebase to convert the existing .platform.app.yaml configuration file to the Upsun Flex format.
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.yamlfiles 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.ymlfile 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.ymlfile to configure as needed. It has been added to.gitignoreso it won't get committed to Git.