- Clone this repo on the prod box.
- Run
setup_docker.sh
. - Run
docker-compose up --build
to make sure everything is working correctly.
- Install the Dev Containers extension in Visual Studio Code.
- Open the project root directory in Visual Studio Code.
- At the bottom right, click the prompt to reopen the project in a container.
Note: The first time you open the project in the container it might take a minute to open, it's setting up the whole environment exactly how it needs to be.
docker-compose down && docker-compose build && docker-compose up --detach
This can also be done directly in Visual Studio Code, which is a pretty nice workflow.
Setting up hot reloading with the web code is complicated because that usually happens through npm
(which spins up its own server that watches the files for changes and rebuilds when needed).
This isn't easily supported in the server.
Just restart the docker container using the command above, it's pretty quick anyways.
- Update the Python version in
.devcontainer/devcontainer.json
. - Update the
python.analysis.extraPaths
property in.vscode/settings.json
. - Update the Python Docker image version in
backend/Dockerfile
. - Update the Python version in
backend/pyproject.toml
.