nstoker / ideal-umbrella

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Following the GoRails episode on setting up Rails 7 with bootstrap, and extending it to work with Docker.

Initial setup

cp .env.example .env
docker-compose build
docker-compose run web bin/rails db:setup

Running the Rails app

docker-compose up

Running the Rails console

docker-compose exec bin/rails c

Running tests

docker-compose run web bundle exec rspec

Updating gems

docker-compose run web bundle update
docker-compose up --build

Problems with docker-compose on Ubuntu 20.04

Sofija Simic's article How to Install Docker Compose on Ubuntu 20.04 helped me.

About

License:MIT License


Languages

Language:Ruby 77.4%Language:HTML 17.7%Language:JavaScript 2.8%Language:Shell 1.0%Language:Dockerfile 1.0%Language:CSS 0.2%