change from production to development and vice versa

Is it possible to change a running image in the field from development to production and vice versa?
How can this be done?

Hi

This is something that we are working on internally. We don’t have a toggle switch though - it will be a hostOS update from dev to production.

For the time being, you should stick to using development images in a controlled environment as there are security implications here. See our documentation on this here - https://www.balena.io/docs/reference/OS/overview/2.x/#development-vs-production-images

Sorry for the bump, but is there any solution for this now?

This was never followed-up.

If you have containerized your application using tools like Docker, you can build and tag different versions of your image. You can deploy the desired image version to the corresponding environment, replacing the previous version. This can be done updating the container configuration or orchestrator settings to point to the new image.

@Timple @JaidenSantino @alvar you can modify the /mnt/boot/config.json file on the device to remove the ‘developmentMode: true’ value. As always, be careful modifying this file though, as any corruption or inability to read it could render the device inaccessible. In the future we plan to allow the transition from development to production from the dashboard.

1 Like