Szakdolgozat/deploy-backend.sh
NorbiPeti aa6f3f51de
Fix backend production deploy and database connection
- Fixed database URL locally and in production
- Set separate DB user just to be safe
- Migrate DB schema on each launch
- Use node user during dev but use root during deploy
- Fix output of the dev container (tsc-watch --noClear)
2021-11-15 22:47:41 +01:00

5 lines
164 B
Bash
Executable file

#!/bin/bash
cd backend || exit
docker-compose build backend
USERNAME="0" docker-compose run -e COMMAND=deploy -v /var/run/docker.sock:/var/run/docker.sock backend