This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version 2.5.3
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
cp .env.example .env
and write tokens (see below)
Create Github OAuth App in this page.
https://github.com/settings/developers
And set GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET
create github GITHUB_ACCESS_TOKEN
this token can read repository.
docker network create gemicoma_link
docker-compose build
docker-compose up
Connect to database and create user.
(We use localhost:15432 by default, docker-compose provide database by this port. )
psql -h localhost -p 15432 -U postgres
create role gemicoma with createdb login password 'gemicoma';
docker-compose run app sh -c "cd /var/www/app && ./bin/rake db:create db:migrate"
First, access to application and login by github account. http://localhost:13000/
And create admin user by rails console
docker-compose run app rails c
# create admin user
User.first.create_admin