Update Shellhttpd¶
The previous section, Dynamic Configuration File, shows how to send configuration files using Fioctl®.
You also saw where the file is located on the device: /var/run/secrets/shellhttpd.conf
However, shellhttpd
is not yet using this file.
You will learn how to modify docker-compose.yml
so that the app uses the host machine’s /var/run/secrets/shellhttpd.conf
.
Start by removing shellhttpd.conf
from the Dockerfile
to simplify your app:
Edit docker-compose.yml
and change the volumes
stanza to share the /var/run/secrets
folder.
Check your changes, add, commit, and push:
Make sure you received your update by checking the latest Target on the Devices tab in your Factory.
Once you receive the update, the Docker log will show the new message configured with Fioctl in the previous section:
If you test the app with curl
, it will also display the new message:
Repeat the fioctl config
command in the previous section to confirm everything is working.
Update the configuration file using Fioctl on your host machine:
Wait, then test your app again: