Share feedback, ideas and get community help

Updated 8 months ago

Self Host: update to the latest version

At a glance

The community member is asking about the procedure to update Typebot to the latest version in a self-hosted environment using a manual installation. Another community member suggests that since the manual installation was done over a month ago, the latest version is already being used. However, the original poster clarifies that they would like to update to the latest version.

In response, a community member provides detailed steps to update a Node.js application managed by PM2 and hosted on a GitHub repository. The steps include navigating to the application directory, optionally stopping the PM2 process, pulling the latest changes from GitHub, installing any new dependencies, rebuilding the application (if required), and restarting the application with PM2.

The original poster expresses gratitude for the detailed instructions provided by the community member.

Useful resources
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