tech:newsblur_install
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tech:newsblur_install [2026/10/07 15:09] – Edit Start katsimbris | tech:newsblur_install [2026/10/07 15:46] (current) – Updating Procedures again katsimbris | ||
|---|---|---|---|
| Line 314: | Line 314: | ||
| Because this installation uses the NewsBlur source repository directly, remember that local source modifications can appear in Git. | Because this installation uses the NewsBlur source repository directly, remember that local source modifications can appear in Git. | ||
| - | Before updating, | + | This installation currently has important local modifications to: |
| + | |||
| + | < | ||
| + | docker-compose.yml | ||
| + | utils/ | ||
| + | </ | ||
| + | |||
| + | The '' | ||
| + | |||
| + | The '' | ||
| + | |||
| + | Before updating, check for local changes: | ||
| <code bash> | <code bash> | ||
| Line 321: | Line 332: | ||
| git diff | git diff | ||
| </ | </ | ||
| + | |||
| + | If '' | ||
| + | |||
| + | < | ||
| + | q | ||
| + | </ | ||
| + | |||
| + | to return to the command prompt. | ||
| A '' | A '' | ||
| Line 326: | Line 345: | ||
| Do **not** blindly discard local changes before determining what they are. | Do **not** blindly discard local changes before determining what they are. | ||
| - | After updating | + | Next, check whether upstream NewsBlur has changed: |
| + | |||
| + | <code bash> | ||
| + | git fetch | ||
| + | git status | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | If Git reports: | ||
| + | |||
| + | < | ||
| + | Your branch is up to date with ' | ||
| + | </ | ||
| + | |||
| + | there is no NewsBlur | ||
| + | |||
| + | ==== Check Local Files Against Upstream ==== | ||
| + | |||
| + | Before pulling an upstream update, check whether NewsBlur has changed either of the files that are modified locally: | ||
| + | |||
| + | <code bash> | ||
| + | git diff HEAD..origin/main -- docker-compose.yml | ||
| + | git diff HEAD..origin/ | ||
| + | </ | ||
| + | |||
| + | If either command produces output, upstream has changed that file since the currently installed version. | ||
| + | |||
| + | Review those changes before proceeding. | ||
| + | |||
| + | Even if no upstream changes are shown for these files, save copies of the local modifications before updating. | ||
| + | |||
| + | ==== Save the Local Docker Configuration ==== | ||
| + | |||
| + | Save the local '' | ||
| + | |||
| + | <code bash> | ||
| + | git diff -- docker-compose.yml > ~/ | ||
| + | </ | ||
| + | |||
| + | Also save a complete copy of the current local Compose file: | ||
| + | |||
| + | <code bash> | ||
| + | cp docker-compose.yml ~/ | ||
| + | </ | ||
| + | |||
| + | The complete backup is useful because the Compose file contains important server-specific settings such as local port bindings and database/ | ||
| + | |||
| + | Optionally review the saved patch: | ||
| + | |||
| + | <code bash> | ||
| + | cat ~/ | ||
| + | </ | ||
| + | |||
| + | ==== Check and Save the Local YouTube RSS Modification ==== | ||
| + | |||
| + | This NewsBlur installation includes a local modification to: | ||
| + | |||
| + | < | ||
| + | utils/ | ||
| + | </ | ||
| + | |||
| + | The modification allows direct YouTube RSS URLs such as: | ||
| + | |||
| + | < | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | to bypass NewsBlur' | ||
| + | |||
| + | Inspect the current upstream YouTube handling: | ||
| + | |||
| + | <code bash> | ||
| + | git show origin/ | ||
| + | grep -n -A 8 -B 8 ' | ||
| + | </ | ||
| + | |||
| + | If upstream still contains: | ||
| + | |||
| + | <code python> | ||
| + | if is_youtube_feed_address(address): | ||
| + | </ | ||
| + | |||
| + | and does not otherwise provide equivalent handling for direct ''/ | ||
| + | |||
| + | Save a copy of the local modification: | ||
| + | |||
| + | <code bash> | ||
| + | git diff -- utils/ | ||
| + | </ | ||
| + | |||
| + | Optionally review it: | ||
| + | |||
| + | <code bash> | ||
| + | cat ~/ | ||
| + | </ | ||
| + | |||
| + | The saved patch should include the important change: | ||
| + | |||
| + | <code diff> | ||
| + | - if is_youtube_feed_address(address): | ||
| + | + if is_youtube_feed_address(address) and "/ | ||
| + | </ | ||
| + | |||
| + | ==== Temporarily Stash the Local Changes ==== | ||
| + | |||
| + | Before pulling the update, temporarily stash both locally modified files: | ||
| + | |||
| + | <code bash> | ||
| + | git stash push -m "Local NewsBlur server modifications" | ||
| + | git status | ||
| + | </ | ||
| + | |||
| + | Confirm that neither '' | ||
| + | |||
| + | The existing untracked backup files, such as: | ||
| + | |||
| + | < | ||
| + | docker-compose.yml.original | ||
| + | utils/ | ||
| + | </ | ||
| + | |||
| + | may still appear under '' | ||
| + | |||
| + | ==== Update the NewsBlur Source ==== | ||
| + | |||
| + | If Git reports that the local branch is behind the upstream branch and the local modifications have been safely backed up and stashed, update the source with: | ||
| + | |||
| + | <code bash> | ||
| + | git pull --ff-only | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | ==== Review the Updated Files Before Restoring Local Changes ==== | ||
| + | |||
| + | After the pull completes, inspect the updated Compose file: | ||
| + | |||
| + | <code bash> | ||
| + | git diff HEAD@{1}..HEAD -- docker-compose.yml | ||
| + | </ | ||
| + | |||
| + | If upstream has substantially changed the Compose configuration, | ||
| + | |||
| + | Also inspect the updated YouTube handling: | ||
| + | |||
| + | <code bash> | ||
| + | grep -n -A 8 -B 8 ' | ||
| + | </ | ||
| + | |||
| + | If NewsBlur still sends direct YouTube RSS URLs through its YouTube fetcher, the local YouTube workaround is still needed. | ||
| + | |||
| + | If upstream NewsBlur appears to have fixed the underlying YouTube RSS issue, **do not blindly restore the old YouTube modification**. Review and test the new upstream behavior first. | ||
| + | |||
| + | ==== Restore the Local Modifications ==== | ||
| + | |||
| + | If the upstream changes do not make the local modifications obsolete or incompatible, | ||
| + | |||
| + | <code bash> | ||
| + | git stash pop | ||
| + | </ | ||
| + | |||
| + | Then inspect the result: | ||
| + | |||
| + | <code bash> | ||
| + | git status | ||
| + | git diff | ||
| + | </ | ||
| + | |||
| + | Confirm that the local '' | ||
| + | |||
| + | <code diff> | ||
| + | - if is_youtube_feed_address(address): | ||
| + | + if is_youtube_feed_address(address) and "/ | ||
| + | </ | ||
| + | |||
| + | If '' | ||
| + | |||
| + | The separately saved backup files remain available at: | ||
| + | |||
| + | < | ||
| + | ~/ | ||
| + | ~/ | ||
| + | ~/ | ||
| + | </ | ||
| + | |||
| + | ==== Update | ||
| + | |||
| + | After the NewsBlur source and local modifications are in the desired state, update the Docker images and containers: | ||
| <code bash> | <code bash> | ||
| docker compose pull | docker compose pull | ||
| docker compose up -d | docker compose up -d | ||
| + | docker compose ps | ||
| </ | </ | ||
| + | |||
| + | Confirm that the expected NewsBlur containers are running normally. | ||
| Only prune unused Docker images when desired: | Only prune unused Docker images when desired: | ||
tech/newsblur_install.1791400176.txt.gz · Last modified: by katsimbris
