Release v3.0.0
- Bump version to 3.0.0 and update docs - Fix Debian payload to include TUI and install /usr/bin/sensorpajen-tui wrapper - Make systemd unit upgrades safer and ignore deb build artifacts
This commit is contained in:
@@ -49,6 +49,7 @@ PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
# 1. Sync Code
|
||||
log "Syncing code from $PROJECT_ROOT to $REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR..."
|
||||
rsync -avz --exclude '.venv' --exclude '__pycache__' --exclude '*.egg-info' \
|
||||
--exclude '*.db' --exclude '*.db-*' --exclude '*.sqlite' --exclude '*.sqlite-*' \
|
||||
"$PROJECT_ROOT/src" "$PROJECT_ROOT/scripts" "$PROJECT_ROOT/pyproject.toml" "$PROJECT_ROOT/config" \
|
||||
"$REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/"
|
||||
|
||||
@@ -127,11 +128,17 @@ ssh -t $REMOTE_USER@$REMOTE_HOST "
|
||||
fi
|
||||
|
||||
# ALWAYS sanitize sensorpajen.env to ensure we don't use system paths
|
||||
# and set explicit dev paths
|
||||
if [ -f config/sensorpajen.env ]; then
|
||||
echo 'Sanitizing config/sensorpajen.env...'
|
||||
echo 'Sanitizing and setting dev paths in config/sensorpajen.env...'
|
||||
sudo sed -i '/^SENSOR_CONFIG_FILE/d' config/sensorpajen.env
|
||||
sudo sed -i '/^DATABASE_FILE/d' config/sensorpajen.env
|
||||
sudo sed -i '/^DISCOVERED_SENSORS_FILE/d' config/sensorpajen.env
|
||||
|
||||
# Add dev paths explicitly (use absolute paths since we're in ssh context)
|
||||
echo "SENSOR_CONFIG_FILE=/home/$REMOTE_USER/sensorpajen-dev/config/sensors.json" | sudo tee -a config/sensorpajen.env > /dev/null
|
||||
echo "DATABASE_FILE=/home/$REMOTE_USER/sensorpajen-dev/config/sensorpajen.db" | sudo tee -a config/sensorpajen.env > /dev/null
|
||||
echo "DISCOVERED_SENSORS_FILE=/home/$REMOTE_USER/sensorpajen-dev/config/discovered_sensors.json" | sudo tee -a config/sensorpajen.env > /dev/null
|
||||
fi
|
||||
|
||||
# Examples (if real config missing)
|
||||
@@ -191,6 +198,7 @@ ssh -t $REMOTE_USER@$REMOTE_HOST "
|
||||
source config/sensorpajen.env
|
||||
set +a
|
||||
fi
|
||||
export TUI_LOG_FILE=dev_backend.log
|
||||
# Run TUI
|
||||
python3 -m sensorpajen.tui.app
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user