Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prathamesh-sonpatki/heroku_ready
Convert a normal Rails app into a Heroku deployable Rails app
https://github.com/prathamesh-sonpatki/heroku_ready
best-practices deployment heroku rails
Last synced: 13 days ago
JSON representation
Convert a normal Rails app into a Heroku deployable Rails app
- Host: GitHub
- URL: https://github.com/prathamesh-sonpatki/heroku_ready
- Owner: prathamesh-sonpatki
- Created: 2021-05-21T17:36:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-06T09:13:18.000Z (over 3 years ago)
- Last Synced: 2024-12-18T14:14:41.630Z (21 days ago)
- Topics: best-practices, deployment, heroku, rails
- Language: Ruby
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Rails + Heroku
- A new Rails app can't be deployed to Heroku right away. This Rails [template](https://guides.rubyonrails.org/rails_application_templates.html) bridges the gap
and can make a Rails app **Heroku Ready**.### What does it do different than default Rails app?
- Changes database to PostgreSQL.
- Adds Procfile.#### Upcoming:
- Error handling addons.
- Logging addons.### How to use?
#### In an existing app:
```sh
$ bin/rails app:template LOCATION=https://raw.githubusercontent.com/prathamesh-sonpatki/heroku_ready/main/rails.rb
rails db:system:change --to=postgresql
identical config/database.yml
gsub Gemfile
gsub Gemfile
conflict Procfile
Overwrite /Users/prathamesh/Projects/sources/sample_app/Procfile? (enter "h" for help) [Ynaqdhm] Y
force Procfile
Run following command to add linux platform dependency required for deployment
bundle lock --add-platform x86_64-linux
```#### Create new Heroku Ready app:
```sh
rails new blog -m https://raw.githubusercontent.com/prathamesh-sonpatki/heroku_ready/main/rails.rb
```