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

Enable refreshing the location and name primers from the production server #50

Open
mo-nathan opened this issue Aug 28, 2024 · 1 comment

Comments

@mo-nathan
Copy link
Member

No description provided.

@mo-nathan
Copy link
Member Author

For now the refresh process involves running rake tasks that are on a branch. To refresh the primers, follow these steps:

  1. Make sure you have a working up to date mushroom-observer repo. This probably means being on the main branch and having successfully run: bundle install; rails db:migrate; rails lang:update
  2. Download the latest database dump from images.mushroomobserver.org and load into the mo_development database instance.
  3. Checkout njw-mobile-primers and merge in main. There shouldn't be any conflicts, but at least confirm that's the case and resolve any that show up.
  4. Run rails app:name_primer and rails app:locations_primer. These should generate name_primer.json and location_primer.json in the top level of your mushroom-observer repo.
  5. In your mo-mobile repo, make sure you're on the latest version.
  6. Verify that the new name_primer.json and location_primer.json are larger than the ones in the app/store directory of your mo-mobile repo.
  7. Copy the primer files from your mushroom-observer repo into the app/store directory in your mo-mobile repo.
  8. Find recently added name and location. These should be at the end of the primer files.
  9. Build the mo-mobile app and verify that the new files are there.
  10. Check in the primers on a new branch in the mo-mobile repo and get them merged to main.

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

No branches or pull requests

1 participant