Managing Maintenance and Updates

Get familiar with the basics of app management.

Several things will probably need to be managed and handled after publishing our app, and we’ll cover a few of them.

Fixing bugs and making changes

This should follow the same workflow we established at the beginning of this section. Any changes to our code, whether bug fixes or additions to our functionality, should be done the same way. We edit code locally, make sure it is running correctly, and then push to the central Git repository. Then, from the server, we pull the changes and rerun the app.

Updating Python packages

There are several packages that our app depends on, and you will most likely have even more in your daily work. Those packages will release updates every now and then, and we need to make sure that they are up to date. Some of those updates are security updates and need to be handled as soon as possible while others introduce new options to packages. In general, we can run pip install --upgrade <package_name> to achieve this, but we’ll still need to check if the new functionality might change the way our app is running or whether it will break our existing code. Well-maintained packages usually publish any such breaking changes and also provide instructions for upgrading, if needed.

Once we have decided to upgrade ...