mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 04:15:45 +08:00
2.1 KiB
2.1 KiB
Update LangBot
This guide explains how to update your LangBot installation to the latest version.
Docker Deployment
If you deployed LangBot using Docker, follow these steps to update:
- Pull the latest image:
docker pull rockchin/langbot:latest
- Stop and remove the current container:
docker stop langbot
docker rm langbot
- Start a new container with the latest image:
docker run -d --name langbot \
-p 5300:5300 \
-v /path/to/data:/app/data \
rockchin/langbot:latest
Replace /path/to/data with the path to your data directory.
Manual Deployment
If you deployed LangBot manually, follow these steps to update:
- Navigate to your LangBot directory:
cd /path/to/langbot
- Pull the latest changes:
git pull
- Update dependencies:
pip install -r requirements.txt
- Restart LangBot:
python main.py
Baota Panel Deployment
If you deployed LangBot using the Baota Panel, follow these steps to update:
- Log in to your Baota Panel
- Navigate to the LangBot website
- Click on "Site Settings"
- Click on "Update from Git"
- Click "Update" to pull the latest changes
- Restart the website
Configuration Changes
After updating, check the release notes for any configuration changes. You may need to update your data/config.yaml file to accommodate new features or changes.
Database Migration
LangBot automatically handles database migrations during updates. However, it's always a good idea to back up your data directory before updating.
Troubleshooting
If you encounter issues after updating, check the following:
- Make sure your configuration file is compatible with the new version
- Check the logs for any error messages
- Ensure all dependencies are installed correctly
- Verify that your model providers are still configured correctly
If problems persist, you can:
- Join the community chat for help
- Open an issue on GitHub
- Revert to a previous version if necessary