Skip to content

This is a template to deploy ruby on rails v7.0.4 with Docker. (available even if it is not Docker) For efficient development regardless of the local environment, docker-compose and Rails Hotwire live reload have been added.(with stimulus js / tailwind css / propshaft)

Notifications You must be signed in to change notification settings

JeongJaeSoon/docker_ruby-on-rails_template

Repository files navigation

Version

  • Ruby : v3.2.1
  • Ruby on Rails : v7.0.4
  • Bundler : v2.4.10

Setup

Install dependencies

$ rbenv install 3.2.1
$ rbenv global 3.2.1
$ rbenv rehash
$ ruby -v
ruby 3.2.1
$ bundle install

Development

$ cp .env.example .env
$ bin/docker dev

Docker

# Container build
$ bin/docker build

# Container run
$ bin/docker run

# Container build & run
$ bin/docker start

# Container stop
$ bin/docker stop

Reference

Dockerfile

docker-compose for development

rails hotwire for live reload

About

This is a template to deploy ruby on rails v7.0.4 with Docker. (available even if it is not Docker) For efficient development regardless of the local environment, docker-compose and Rails Hotwire live reload have been added.(with stimulus js / tailwind css / propshaft)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published