Summary: Production uses Docker images, local dev env uses docker-compose. Heroku automatically deploys main, can be overridden temporarily by another branch for testing purposes.
Devops:
create Dockerfile to create image of application
enable auto deploys on heroku for branch main (switched our stack to container)
add docker-compose file for local development
add individual dockerfiles to build standalone instances of backend and front end
front-end build is served using nginx
To fire-up dev env:
docker-compose -f docker-dev.yml up -d
Then once working, go into terminal for backend and execute the createTables script and get_prod_data if you wish to get some data on your local dev env.
Front-end:
add env var to point to local backend
remove /build from repo since we don't need it anymore
Summary: Production uses Docker images, local dev env uses docker-compose. Heroku automatically deploys main, can be overridden temporarily by another branch for testing purposes.
Devops:
To fire-up dev env: docker-compose -f docker-dev.yml up -d Then once working, go into terminal for backend and execute the createTables script and get_prod_data if you wish to get some data on your local dev env.
Front-end:
Backend: