Skip to content

Updating to Github Master Branch

Kyle Gabriel edited this page Jan 15, 2023 · 6 revisions

This is not a recommended method for upgrading Mycodo. Only follow these instructions if you know what you're doing or you were instructed to do so by a Mycodo developer. Using this method has a very real chance of breaking your system.

There are 2 ways to instruct Mycodo to upgrade to the master branch. Only use one of the two methods:

1. From the User Interface (Easy Method)

Go to the [Gear Icon] -> Configure -> Diagnostics page and press the "Set to Upgrade to Master" button. config.py will be edited and the frontend will be automatically restarted.

2. Manually Edit ~/Mycodo/mycodo/config.py (Advanced Method)

Change this line near the top of the file:

FORCE_UPGRADE_MASTER = False

to:

FORCE_UPGRADE_MASTER = True

Then save your edit.

Restart the Mycodo frontend:

sudo service mycodoflask restart

Perform the Upgrade

Navigate to the upgrade page ([Gear Icon] -> Upgrade) and you should see text informing you an upgrade will be performed to the latest commit on the Github master branch.