Szakdolgozat/deploy-backend.sh
NorbiPeti c62925daf7
Add Heroku deploy and frontend/backend deploy scripts
- Added local DB container
- Added scripts to deploy frontend/backend by running the deploy command in the containers
- Installing Docker and Heroku CLI in the dev backend container to be able to build and push the container without installing the CLI on the host
- Building and pushing the production container to the Heroku Container Registry
2021-11-15 20:34:45 +01:00

5 lines
151 B
Bash
Executable file

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