Update dev environment

This commit is contained in:
2022-04-09 12:31:47 -05:00
parent 4833707736
commit bc4a4224de
6 changed files with 36 additions and 13 deletions

10
setup-dev.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash -xe
docker run -p 6379:6379 --name redis -d redis
docker run -p 5432:5432 --name postgres --env POSTGRES_PASSWORD=postgres -d postgres
sleep 5
docker exec -it postgres su - postgres -c "psql -c 'create database mathy;'"
cp example.env .env
pnpm i
./ex migrate