Self Host: update to the latest version

Hello there! What's the procedure to update Typebot to the latest version in a self host environment (manual)?
6 Replies
michaelvips
michaelvips11mo ago
Are you using docker ?
simone142
simone142OP11mo ago
No, i did the manual installation https://docs.typebot.io/self-hosting/deploy/manual
michaelvips
michaelvips11mo ago
this already use latest version
No description
simone142
simone142OP11mo ago
Yes, but I've installed Typebot over a month ago. Now I would like to update to the latest version.
michaelvips
michaelvips11mo ago
To update your Node.js application that's being managed by PM2 and hosted on a GitHub repository, follow these steps: 1. Navigate to your application's directory: Open a terminal and go to the directory where your Node.js application is located.
cd /path/to/your/nodejs/app

cd /path/to/your/nodejs/app

2. Optionally stop the PM2 process: You might want to stop your application before updating it to prevent any issues.
pm2 stop app_name_or_id

pm2 stop app_name_or_id

Replace app_name_or_id with the name or ID of your app's process in PM2. 3. Pull the latest changes from GitHub: Make sure you're on the right branch and then update your local code with the changes from GitHub.
git checkout main # or the branch you want to update
git pull origin main # replace 'main' with your desired branch if needed

git checkout main # or the branch you want to update
git pull origin main # replace 'main' with your desired branch if needed

4. Install any new dependencies: If the package.json has been updated with new dependencies, you need to install them.
npm install

npm install

5. Rebuild your application (if required): If your application needs a build step, run the necessary command to build it.
npm run build # This command can vary depending on your app

npm run build # This command can vary depending on your app

6. Restart your application with PM2: Once everything is updated and built, you can restart your Node.js application with PM2.
pm2 restart app_name_or_id

pm2 restart app_name_or_id

That's it! Your Node.js app should now be updated to the latest version from the GitHub repository and running with the new changes.
simone142
simone142OP11mo ago
You are a star! Thank you so much 🙏

Did you find this page helpful?