api/setup-dev.sh

11 lines
274 B
Bash
Raw Normal View History

2022-04-09 17:31:47 +00:00
#!/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