Skip to content

Latest commit

 

History

History
56 lines (28 loc) · 791 Bytes

README.md

File metadata and controls

56 lines (28 loc) · 791 Bytes

README

Rails info

Rails version: 5.2.3

Ruby version: 2.5.5 (x86_64-linux)

Getting started

Install Docker: https://docs.docker.com/compose/install/

Build images and run application:

docker-compose up -d

Wait for a few seconds until the server starts.

Create database:

docker-compose run web rake db:create

Open http://localhost:3000 in your browser.

Migrations

Example migration, create users table:

docker-compose run web bin/rails generate migration CreateUsers

docker-compose run web rake db:migrate

pgAdmin

Open http://localhost:5050

[email protected]

admin


Quick Links -> Add New Server

host: db

port: 5432

database: app_development

username: postgres

password: