[RUBY] heroku deploy

If you are using a database other than postgreSQL, comment out the gem for that database and At the bottom of the Gemfile, declare to use postgreSQL in production and bundle install.


# gem 'mysql2', '>= 0.4.4', '< 0.6.0'

group :production do
  gem "pg"

If you use a template literal in jQuery, comment out the following sentence.


# config.assets.js_compressor = :uglifier

After that, log in if registration is completed on heroku.


$ heroku login

After that, create an application managed by GitHub on heroku.


$heroku create app name

Execute the following code with commit and push on GitHub and merged into master.


$ git push heroku master

Create a database on heroku.


$ heroku run rails db:migrate

And finally open the app


$ heroku open

Recommended Posts

heroku deploy
heroku: docker: deploy
Steps to deploy to Heroku
Deploy Vapor Project to Heroku
Deploy a war file on Heroku
Deploy Flask's Docker image on Heroku
Deploy Rails on Docker to heroku
Deploy your Rails app on Heroku
Deploy heroku with Rails6 (Cloud9 + Ubuntu) + MySQL
Deploy to heroku with Docker (Rails 6, MySQL)
Deploy to Heroku [Ruby on Rails] Beginner
Deploy a Java web app on Heroku
Deploy a Tomcat-based Eclipse project on Heroku
Heroku command summary
How to deploy
Deploy to Heroku (for second and subsequent edits)
Deploy Line bot with rails5 + Docker + Heroku Note
How to deploy to Heroku from a local docker image
How to check CircleCI code and automatically deploy to Heroku