We're put together this handout for you to give to a developer when you start working with them. It'll help you avoid introducing bugs into your shop and give you a quick way to go back to a bug-free version of your theme in case of issues.
Hi Shopify Expert
I'm looking forward to working together on our shop.
I've written down how we back up our shop to make sure we can restore from any bugs quickly.
Our published theme is backed up every hour automatically by the Plug in Backup app. In there we can also take backups manually before changes are made, and restore a previous backup in case of issues.
This will affect how you edit our theme code so please consider these guidelines:
- Make your changes in an unpublished theme whenever possible
- Keep your changes locally, ideally in a git repository: themes may be deleted/changed at any time and your changes will be lost
- When you've tested you changes and you're ready to push them live, take a backup in Plug in Backup. Go to the Shopify admin > Apps > Plug in Backup. Push 'Create a new version' and enter a comment like 'Before publishing menu customisations'.
- Wait until the backup is complete and showing in Plug in Backup
- Make your changes to the live theme, test
- Take a backup in Plug in Backup as above, adding a comment like 'After publishing menu customisations'
In case of issues in production:
- Please do not try to fix them in the published theme, first we need to restore the shop to a working state
- Go to the Plug in Backup app and push 'Restore' next to your backup like 'Before publishing menu customisations'
- Wait until it is restored
- Reproduce the issues in an unpublished theme, fix and repeat the deploy process
Thanks for reading this and following these guidelines.