Updating Botpress
Download the latest Botpress version here.
Version 12
SQLite
caution
Please backup your /data folder before making any changes.
- Download and extract the new version of Botpress.
- Copy the content of your previous /datafolder.
- Paste the content into the /datafolder of the new version, then delete theassetsfolder.
- Start Botpress with --auto-migrateon the command line, orAUTO_MIGRATE=trueenvironment variable.
PostgreSQL
caution
Please backup your database before making any changes.
- Download and extract the new version of Botpress.
- Start Botpress with --auto-migrateon the command line, orAUTO_MIGRATE=trueenvironment variable.
To start the latest version of Botpress on a new database, you will need to pull /data to your filesystem.
Luckily, we have a tool for that:
- In Botpress running the old version, from the admin section, go to Profile > Server > Version Control.
- Copy the command from Version Control, or Download archive.
- From the old version's root, open a terminal and execute the command. /datais now synced to filesystem.
- Copy /dataand paste in the new version's root. If you downloaded the archive, extract its contents to/data.
- Set the environment variable DATABASE_URLto the new database.
- Start Botpress. The filesystem will sync to the database automatically.
Custom assets
For both database systems, if you have any custom assets, do these extra steps:
- Start Botpress, wait for the server to be ready, then stop it. This creates the updated assets for all components.
- Restore your custom asset files. Check and make sure they are compatible with your latest version.
- Restart Botpress.
Version 11 and earlier
Even though Botpress Server has become much more stable, breaking changes still might occur. When they do, resolving them is often as simple as editing config files in the /data folder.