I run these two scripts below, it looks like the build.sh copies the app code. When I run the deploy command and then go inside (exec /bin/bash) the container, I can't see the code changes.
TAG=prod FRONTEND_ENV=production bash ./scripts/build.sh
DOMAIN=xxx.com \ TRAEFIK_TAG=xxx.com \ STACK_NAME=xxx-com \ TAG=prod \ bash ./scripts/deploy.sh
If I do docker stack rm xxx-com then rerun the build.sh and deploy.sh it picks up the latest code changes in app. I thought I would be able to build and deploy without removing them from the stack, since this would cause some minor downtime if I need to docker stack rm each time.
Sorry if this is just a basic misunderstanding of my docker knowledge, I'm very new to it.
I run these two scripts below, it looks like the build.sh copies the app code. When I run the deploy command and then go inside (exec /bin/bash) the container, I can't see the code changes.
TAG=prod FRONTEND_ENV=production bash ./scripts/build.shDOMAIN=xxx.com \ TRAEFIK_TAG=xxx.com \ STACK_NAME=xxx-com \ TAG=prod \ bash ./scripts/deploy.shIf I do
docker stack rm xxx-comthen rerun the build.sh and deploy.sh it picks up the latest code changes in app. I thought I would be able to build and deploy without removing them from the stack, since this would cause some minor downtime if I need to docker stack rm each time.Sorry if this is just a basic misunderstanding of my docker knowledge, I'm very new to it.