Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This contains a production-specific Docker build. The main web Dyno process works including:
STDOUT
web
i.e.heroku container:push web --recursive
I was unable to get the orats base
Dockerfile
to work out of the box in Heroku. Here's a summary of what I had to do to get things working in production/Heroku:config/puma.rb
to assume the IP address forbind
but require thePORT
env variable which Heroku sets automaticallySee the commit messages for more details.
Futures
Ideally, I'd like to get a single
Dockerfile
that could be used in all environments.Both commits mention:
I am going to merge this PR anyway so I can test pushing features changes to production. I will defer these to #3.
Resources
https://github.com/nickjj/orats
Rails + Docker
https://devcenter.heroku.com/articles/container-registry-and-runtime
https://nickjanetakis.com/blog/dockerize-a-rails-5-postgres-redis-sidekiq-action-cable-app-with-docker-compose
https://dzone.com/articles/deploying-your-docker-rails-app
https://blog.red-badger.com/blog/2016/06/22/docker-and-assets-and-rails-oh-my
Rails + Heroku
https://blog.heroku.com/real_time_rails_implementing_websockets_in_rails_5_with_action_cable
https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#port
https://blog.heroku.com/container_ready_rails_5
Docker
https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes