chore: add development docker environment
adds a docker environment for development. can be started using: `docker compose -f docker-compose.dev.yml up --watch --build`
This commit is contained in:
parent
cdc0e81e51
commit
a2a5eee49e
4 changed files with 56 additions and 1 deletions
10
entrypoint.dev.sh
Normal file
10
entrypoint.dev.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Running start script with user $(whoami) and NODE_ENV $NODE_ENV"
|
||||
if [ -d "prisma" ]; then
|
||||
echo "Syncing Prisma database"
|
||||
yarn prisma:generate
|
||||
yarn prisma:db:push
|
||||
fi
|
||||
|
||||
exec yarn dev
|
Loading…
Add table
Add a link
Reference in a new issue