Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Our Weekly 2024: Publisher CLIs for 2024 Ghost to WP Migation #499

Open
wants to merge 37 commits into
base: trunk
Choose a base branch
from

Conversation

ronchambers
Copy link
Collaborator

@ronchambers ronchambers commented May 14, 2024

Publisher specific cli's below.

@ronchambers ronchambers changed the title Our Weekly 2024: Specific CLI for 2024 Ghost to WP Migation Our Weekly 2024: Publisher CLIs for 2024 Ghost to WP Migation May 14, 2024
@ronchambers
Copy link
Collaborator Author

ronchambers commented May 26, 2024

Fix mixed up categories from initial import:

Command: wp newspack-content-migrator ourweekly2024-categories --json-file=[THIS IS THE SAME JSON AS BEFORE]
Note: this uses the original migration file. It's probably still on the server somewhere.
Running time: under 1 minute
Output: OurWeekly2024Migrator_cmd_ourweekly2024_categories.log

@ronchambers
Copy link
Collaborator Author

Fetch and replace remote media in post content.

Command: wp newspack-content-migrator ourweekly2024-post-content
Main log: OurWeekly2024Migrator_cmd_ourweekly2024_post_content.log
Link logs: OurWeekly2024Migrator_cmd_ourweekly2024_post_content.log-links-*.log

After run, need to review link-* logs for any a href and iframe src for links to media files. Do by-hand.

Also review main log for any warnings or errors.

@ronchambers
Copy link
Collaborator Author

Helper:

wp newspack-content-migrator ourweekly2024-post-content-checker
OurWeekly2024Migrator_cmd_ourweekly2024_post_content_checker.log

@ronchambers
Copy link
Collaborator Author

Set redirects as needed:

Command: wp newspack-content-migrator ourweekly2024-redirects
Log: OurWeekly2024Migrator_cmd_ourweekly2024_redirects.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant