Optional Resources
MongoDB
Setup
MongoDB, a NoSQL database, is known for high performance and scalability. It’s ideal for handling large data volumes in the Evolution API.
Set the MongoDB environment variables in the .env
for Docker or the dev-env.yml
for NPM file as follows:
.env or dev-env.yml
Migrate your data in NPM or NVM
Stop the PM2 execution:
Flush and Stop: Clears all logs from PM2, useful for troubleshooting after the update and temporarily stops the Evolution API to safely apply updates.
Evolution API directory: access your directory installation with the following command:
Migrate command: Run the migration command in the installation directory:
Follow the script steps and migrate specific WhatsApp instances or all your instances.