Share feedback, ideas and get community help

Updated 7 months ago

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)?
M
s
6 comments
Are you using docker ?
this already use latest version
Attachment
image.png
Yes, but I've installed Typebot over a month ago. Now I would like to update to the latest version.
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.
Plain Text
   cd /path/to/your/nodejs/app
   


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


Replace app_name_or_id with the name or ID of your app's process in PM2.

  1. 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.
Plain Text
   git checkout main # or the branch you want to update
   git pull origin main # replace 'main' with your desired branch if needed
   


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


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


  1. Restart your application with PM2:
    Once everything is updated and built, you can restart your Node.js application with PM2.
Plain Text
   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.
You are a star! Thank you so much πŸ™
Add a reply
Sign up and join the conversation on Discord