Description
Wiki files are stored locally in data/wikis/. When running services/wiki_service/start.sh, it brings up WikiMedia and loads all pages from data/wikis/.
Current behavior:
start.sh loads pages from data/wikis/ into the wiki
- User can edit pages in the served wiki UI
- Changes are NOT reflected back to local files
Desired behavior:
- Changes made in the wiki UI should sync back to
data/wikis/
Goal
Implement a sync operation that watches for wiki page changes and writes them back to the local filesystem.
Deliverable
Update services/wiki_service/ to include:
- A sync mechanism that detects wiki page edits
- Write changes back to corresponding files in
data/wikis/
Test
- Run
services/wiki_service/start.sh
- Edit a wiki page in the local WikiMedia UI
- Verify that the corresponding file in
data/wikis/ is updated with the changes
References
services/wiki_service/start.sh
data/wikis/
Dependencies
Description
Wiki files are stored locally in
data/wikis/. When runningservices/wiki_service/start.sh, it brings up WikiMedia and loads all pages fromdata/wikis/.Current behavior:
start.shloads pages fromdata/wikis/into the wikiDesired behavior:
data/wikis/Goal
Implement a sync operation that watches for wiki page changes and writes them back to the local filesystem.
Deliverable
Update
services/wiki_service/to include:data/wikis/Test
services/wiki_service/start.shdata/wikis/is updated with the changesReferences
services/wiki_service/start.shdata/wikis/Dependencies