Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 985 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 985 Bytes

Welcome to Docker Rails Demo

Rails, Docker and Webpacker is an awesome combination, for instance to develop React/Rails apps with. This demo app uses Rails 5, Webpacker and Docker. In development mode, it uses webpack-dev-server for live Javascript reloading. As database it uses PostgreSQL.

First, build the app for development

docker-compose build

Create the database

docker-compose run web scripts/wait-for-it.sh db:5432 -- "rake db:create db:migrate"

Run the app in development mode

docker-compose up

Build the app for production

docker build -t docker-rails-demo .

Now open http://localhost:3000 and look at your Javascript console to see messages

Brought to you by Soulmates.ai

Released under the MIT License