dbbot.ai Site Deployment and Updates

This page is only about deploying and updating the dbbot.ai website itself. It does not use generic placeholder commands.

Fixed Paths

  • Source tree: /opt/dbbot_web
  • Site root: /var/www/dbbot.ai/public
  • Base URL: http://dbbot.ai/
  • Branch: admin

Routine Deploy

If the server already has /opt/dbbot_web/.git, copy and run:

cd /opt/dbbot_web
git pull --ff-only
sudo BRANCH="admin" \
APP_DIR="/opt/dbbot_web" \
SITE_ROOT="/var/www/dbbot.ai/public" \
BASE_URL="http://dbbot.ai/" \
bash scripts/deploy-from-git-on-server.sh

If you do not want to run git pull manually first, run just the script:

cd /opt/dbbot_web
sudo BRANCH="admin" \
APP_DIR="/opt/dbbot_web" \
SITE_ROOT="/var/www/dbbot.ai/public" \
BASE_URL="http://dbbot.ai/" \
bash scripts/deploy-from-git-on-server.sh

Initialize Nginx and Directories

If you only need to initialize the site root and Nginx:

cd /opt/dbbot_web
sudo SITE_NAME="dbbot.ai" \
SERVER_NAME="dbbot.ai www.dbbot.ai" \
SITE_ROOT="/var/www/dbbot.ai/public" \
bash scripts/bootstrap-ubuntu-25-10-nginx.sh

Verification

After deploy, run at least:

sudo nginx -t
systemctl status nginx --no-pager
curl -I http://dbbot.ai/
curl -I http://dbbot.ai/docs/
curl -I http://dbbot.ai/zh-cn/docs/

Notes

  • deploy-from-git-on-server.sh reuses the current repo origin when /opt/dbbot_web/.git already exists.
  • That means routine dbbot.ai deploys do not need REPO_URL anymore.
  • You only need REPO_URL for the very first clone on a new server.