Update Development Application
To update the development application:
- Update the image repository
- Build a new image
- Restart docker containers
Update the image repository
- Open
workspace/settings.py
file - Update the
image_repo
to your image repository - Set
build_images=True
workspace/settings.py
# -*- Image Settings
# Repository for images
image_repo="local",
# Build images locally
build_images=True,
Build a new image
Build a new image using the phi
cli
Build dev image
phi ws up --env dev --config docker --type image
To force
rebuild images, use the --force
or -f
flag
phi ws up --env dev --config docker --type image --force
Restart docker containers
phi ws restart --env dev --config docker --type container