Skip to content

skport/rails6-tmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rails 6 project template

This is a template project for ruby 2.6 & rails 6.0.

Docker Containers

service container name role host:port
app rails6-tmp-app Ruby & Rails localhost:3000
db rails6-tmp-mariadb Database localhost:3306
adminer rails6-tmp-adminer Database Management in PHP localhost:8080

Usage

Move to docker directory:

cd ./docker/rails6-tmp

Create and start containers:

  1. Copy the gemfile needed for docker build to the docker directory.
  2. Execute docker-compose command.
  3. Remove gemfiles that are no needed.
cp ../../rails/Gemfile* .; \
docker-compose up -d; \
rm Gemfile*;

After container creation is finished, start with docker-compose up -d only.

Execute an interactive bash shell on the app container:

docker exec -it rails6-tmp-app bash

View docker log

docker logs rails6-tmp-app

Browsing Rails

Visit http://localhost:3000/.

Browsing database

Visit http://localhost:8080/ and browse database with "adminer". The password is set in compose.yml. This is the easiest way to verify that the database is up and running.

About

A template project for ruby 2.6 & rails 6.0.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published