- install wsl
- use this guide to set it to docker default (https://docs.docker.com/docker-for-windows/wsl/#develop-with-docker-and-wsl-2_)
- open terminal and navigate to file location
- type
wsl
- then
code .
- copy and rename
master.key_backup
to~/config/master.key
docker-compose build
docker-compose run app yarn install --check-files
docker-compose run app bundle install
docker-compose up
docker-compose exec app bundle exec rails db:create
docker-compose exec app bundle exec rails db:migrate
docker-compose exec app bundle exec rails db:seed
bundle exec guard
and wait for (main)> prompt
then bundle exec guard -p
in order for spec saves to trigger test run
problem:
Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "./docker_entrypoint.sh": permission denied: unknown
solution:
chmod u+x docker_entrypoint.sh
problem:
bash: /usr/src/app/bin/webpack-dev-server: /usr/bin/env: bad interpreter: Permission denied
solution:
chmod +x app/bin/webpack-dev-server
- Create a template on sendgrid using the
{{user}}
handlebars syntax to target the user/washer name - Copy the template id
- Preview the email and copy the url
- In the new email form fill the fields with the above copied data
EDITOR=nano rails credentials:edit
in the console ordocker-compose run --rm -e EDITOR=nano app bin/rails credentials:edit
for docker