loco-devcontainer
is a simple configuration to support fully-dockerised development of Loco applications using Visual Studio Code.
You can download the files in this repo and place them in the special .devcontainer
folder in your Loco app.
Alternatively, you may use Git Submodules:
git submodule add https://github.com/loco-rs/loco-devcontainer .devcontainer
If you use this method, do not forget to install submodules when cloning:
git clone --recurse-submodules ...
Be sure to review the various components we have set up for you in compose.yaml, and the base Docker image in Dockerfile.
To see how everything connects with your app, look at the .env environment variables set up.
In config/development.yaml
under server you will need to change the host and binding from localhost to 127.0.0.1 in your loco app as VS Code Remote does not support IPv6.