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

Create migration script for theme 2.0 #9793

Open
mattstratton opened this issue Jun 11, 2020 · 1 comment
Open

Create migration script for theme 2.0 #9793

mattstratton opened this issue Jun 11, 2020 · 1 comment

Comments

@mattstratton
Copy link
Member

This will be a long-running issue, but it needs to be captured. Need to update this ongoing with requirements, etc.

@mattstratton
Copy link
Member Author

mattstratton commented Jun 30, 2020

The tool used for this is located at devopsdays/migrator.

Note that this is kind of how the migration works (just to keep track):

  • The source is ~/src/github.com/devopsdays/devopsdays-web on branch master (pull from origin before running migration)
  • The destination is ~/src/migrate/devopsdays-web (create a new branch off of development before migrating; this is the source for the updated theme code as well, which should be merged into development branch prior to migrating, etc)
  • "Old" content files are located at ~/src/dod-backup
  • Copy the content directory from ~/src/dod-backup to ~/src/github.com/devopsdays/devopsdays-web prior to migration
  • In theory, the data/speakers/yyyy directories are already up to date in ~/src/github.com/devopsdays/devopsdays-web
  • Run the "migrate sponsors" command in migrator to migrate all sponsor data from the source to the destination directories
  • Run the "migrate events" command in migrator to migrate all events from the source to the destination directories
  • Test the build time with the "full" amount of events (static migrated to non-static)
  • Optional: After the test, if things look clean, need to do some cleanup in the static directory to remove all the HTML output. This has to be done manually.

One random note; might have to do the "static directory cleanup" stuff prior to running the test, as hugo might not try to generate/process content files if the static directory already exists?

@mattstratton mattstratton moved this from To do to In progress in Theme 2.0 Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Theme 2.0
  
In progress
Development

No branches or pull requests

1 participant