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
/data
folder. - Paste the content into the
/data
folder of the new version, then delete theassets
folder. - Start Botpress with
--auto-migrate
on the command line, orAUTO_MIGRATE=true
environment variable.
PostgreSQL​
caution
Please backup your database before making any changes.
- Download and extract the new version of Botpress.
- Start Botpress with
--auto-migrate
on the command line, orAUTO_MIGRATE=true
environment 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.
/data
is now synced to filesystem. - Copy
/data
and paste in the new version's root. If you downloaded the archive, extract its contents to/data
. - Set the environment variable
DATABASE_URL
to 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.