Best Way To Update / Upgrade #247
-
|
What is the best way to update / upgrade OtterWiki? If I installed via uWSGI do I just update the repo? Any other prep, post-update tasks? I’ve presumed if you installed it via Docker then you just destroy the container and pull and deploy a new one with the updated version, but I didn’t take that path. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
|
@nateProjects I am another user, not this project's developer, but I can tell you what I do.
I am curious if others have another method but this is simple and has worked for me every time. Edit: I just remembered that I did have to do one more thing to update from v2.10.4 to v2.10.5. I had to install the new pip packages. Update the steps above. |
Beta Was this translation helpful? Give feedback.
-
|
It doesn't seem like there should be any reason to stop & restart nginx. Either the app is listening on that port, or it isn't. The only difference stopping nginx would make is which error a user would get in their browser when they tried to go to the wiki while otterwiki isn't running. Am I missing something? |
Beta Was this translation helpful? Give feedback.
-
|
Hello everyone, good question and good answers, I appreciate all the effort! What @rluzuriaga has described looks good to me. If you stop your reverse proxy (e.g. nginx) for the update depends on your personal taste and patterns. In my environments the reverse proxy serves multiple services, so I don't stop em while I upgrade An Otter Wiki. As shown above: When deploying from source I stronly recommend to checkout the tag of the latest release, I have to update the docs about this. I general the goal for any update is to not have any breaking changes, so that no manual modifications of the settings.cfg, the environment variables, the sqlite database or the repository should be necessary. If this would be the case, there will be a big note in the release notes. For the sake of completeness, when updating a deployment made with docker compose pull && docker compose up -dwhich should keep the downtime very short. |
Beta Was this translation helpful? Give feedback.
-
|
To make these infors easier to find, I've added how to Upgrade to the documentation on otterwiki.com. |
Beta Was this translation helpful? Give feedback.
@nateProjects I am another user, not this project's developer, but I can tell you what I do.
otterwikiandnginxservicessudo systemctl stop otterwiki && sudo systemctl stop nginxcd /opt/otterwikigit fetchgit checkout v2.10.6./venv/bin/pip install .sudo systemctl start nginx && sudo systemctl start otterwikiI am curious if others have another method but this is simple and has worked for me every time.
Edit: I just remembered that I did have to do one more thing to update from v2.10.4 to v2.10.5. …