01 / 04
Buildpack or container — pick one
The Ruby buildpack is the classic 'git push heroku main' experience — no Dockerfile needed. For anything non-trivial, use container deploys (`heroku container:push web`) and you get the same image on Heroku, staging, and local.
bashheroku container:login heroku container:push web --app my-rails-app heroku container:release web --app my-rails-app heroku run rails db:migrate --app my-rails-app