Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

troygoode/shintolin4

Repository files navigation

Shintolin

Setup

Docker Installation

Install Docker (stable channel):

https://docs.docker.com/docker-for-mac/install/

Docker DNS Fix

There is some weird Docker DNS stuff that made things slow. This magic spell fixes it if placed in your /etc/hosts file:

# DOCKER MAGIC, see: https://github.com/docker/compose/issues/3419#issuecomment-221793401
127.0.0.1       localunixsocket.local
127.0.0.1       localunixsocket.localdomain
127.0.0.1       localunixsocket

Getting Started

From your host machine:

bin/reset-database # create a Docker volume for database storage; ignore the error
bin/shell # start the containers and drop you into a bash shell

From within the shell opened above:

yarn run db-migrate up # execute database migrations
bin/start # use PM2 to start up the various apps

Now try accessing the below in your host's web browser:

Also take a look at the various PM2 commands (in particular, pm2 logs <app_name>):

http://pm2.keymetrics.io/docs/usage/quick-start/#cheat-sheet

License

MIT License

Author

Troy Goode (troygoode@gmail.com)