derek-schaefer / heroku-docker-rails

A Heroku Container Runtime experiment

Home Page:https://heroku-docker-rails.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku Docker Rails

This Rails application is an experiment for exploring Heroku's recently released Docker support.

Dependencies

Development

Run the application locally:

$ docker-compose up

Migrate the database:

$ docker-compose run web bundle exec rails db:migrate

Run another command in a new container:

$ docker-compose run web bundle exec rails console

Open it in your browser:

$ open http://localhost:3000

Deployment

Log in to Heroku:

$ heroku login

Log in to the Container Registry:

$ heroku container:login

Create the application:

$ heroku create heroku-docker-rails

Create the database:

$ heroku addons:create heroku-postgresql:hobby-dev

Build and push the image:

$ heroku container:push web

Migrate the database:

$ heroku run bundle exec rails db:migrate --type web

Open it in your browser:

$ heroku open

Run another command in a new container:

$ heroku run bundle exec rails console --type web

About

A Heroku Container Runtime experiment

https://heroku-docker-rails.herokuapp.com


Languages

Language:Ruby 77.3%Language:HTML 16.9%Language:JavaScript 3.5%Language:CSS 2.1%Language:Shell 0.3%