- Docker
- Build images
docker-compose build
- Run containers
docker-compose up -d
- Head to
localhost:8080
docker attach snackbox_web_1
and add abyebug
in the code to debug- Use mailcatcher to check email content, if not already running
docker-compose up -d mailcatcher
and openlocalhost:1080
- Make changes to variables with
EDITOR=vim rails credentials:edit --environment {ENVIRONMENT}
docker-compose exec ${container} ${command}
- For example, the rails console, need to run in the container
docker-compose exec web rails c
- add
SECRET_KEY_BASE
andRAILS_MASTER_KEY
of the production key to docker-compose list of environment variables. docker-compose -f docker-compose.yml up -d --build