Skip to content

Updating the Web Application on the Cloud

When you have implemented changes to the web application, at some point, you will want to push those changes out into the wild. The first thing to realize is that the web application is hosted inside the SD card image of each device (RockPi) as well as on both cloud server instances. You will need to really think about the level of changes that you are making to decide how to best move forward. If the changes are 'breaking', it becomes much more complex as you need to coordinate across SD card image deployments and cloud updates. The documentation below, assumes these are minor changes to the web application that do not break or change any functionality between the device and servers.

Before updating the application from your local machine, be sure to pull any changes from the GitHub repository. Then run ansible in the devops/ansible directory using the following commands:

ansible-playbook -i hosts server.yml -l dev

to push the application to the development server and

ansible-playbook -i hosts server.yml -l prod

to push the changes to the production server.

Warning

It is good practice to push the changes to the development server and verify the changes before pushing to production