Update an App
In this section, we will see how to update an app and use automated deployment to update the already deployed app on Pollination. This section builds on the this section and therefore assumes that you have already completed it..
Step-1 Update App locally
Go to your locally cloned wind-rose repository. Go inside the "app" folder and update the app.py to have the following code. Here, we have updated the app to filter the wind rose based on the analysis period.
Step-2 Commit Changes
Open Github desktop and go to your wind-rose repository. You should see the changes appear. In the diff checker on the right, note the changes that have been made to the app. Also note the commit message. Since we added the capability to use analysis period to filter the wind rose, we are using the feat
commit type. Also, since the change is only made in the app.py, we're using the file name in the commit scope. The full commit message here is;
feat(app.py): add analysis period to filter wind rose
Click on the "Commit to master" and then on "Push to origin".
That's it. You should see a new version of the app deployed on Pollination in 5-10 minutes with the changes we made.
Last updated