Updating Shopify Bot
To update Shopify Bot, follow these steps:
Before Updating
-
Make a backup of your important files:
.envfile - Contains your configuration settingsconfig.jsonfile - Contains your default server configuration
Store these backups in a safe location outside the installation directory
Update Process
-
Prepare for Update
- Stop the application. We don't want any hanging data, so stop the bot fully.
- Make sure you have a backup of important files.
-
Delete the following files/folders:
package.jsonserver.jssrcfolder - Must be completely deleted, not just replacedImportant: Simply replacing files in the build folder can cause errors due to mismatched or obsolete files
Note: Do NOT delete your backed-up files!
-
Download the latest release from Shopify Bot Releases
- Check release notes for specific update instructions
- Some updates may require you to update npm packages or add new directories
- Download the appropriate version
- Check release notes for specific update instructions
-
Copy the new files to your installation directory
- Extract the downloaded release
- Copy all files except the
.envandconfig.json
-
If the release notes mention package updates:
- Delete
package-lock.jsonandnode_modulesfolder - Run
npm installto install new dependencies - Wait for installation to complete
- Delete
-
If release notes mention updating your Shopify App:
- You will need to go into your Shopify Dev Dashboard > Your App
- Make a new version with any new scopes (ensure to copy the previous ones as well)
- Reinstall the app to your store
-
Check release notes for any
.envorconfig.jsonfile changes- Update your
.envorconfig.jsonfile with any new required variables - Keep your existing configuration values
- Add any new required settings
- Update your
-
Restart Shopify Bot
- Run the bot via your preferred method.
- Check logs for any startup errors