跳至主要內容
在 GitHub 上編輯此頁面

升級 Superset

Docker Compose

首先,請務必關閉 Docker Compose 中正在運行的容器

docker compose down

接著,透過 git 更新鏡像 `superset` 儲存庫的資料夾

git pull origin master

然後,重新啟動容器,任何已變更的 Docker 映像檔將會自動下載

docker compose up

手動更新 Superset

若要在原生安裝中升級 superset,請執行以下命令

pip install apache-superset --upgrade

升級中繼資料資料庫

執行以下命令遷移中繼資料資料庫

superset db upgrade
superset init

雖然升級 superset 不應刪除您的圖表和儀表板,但我們建議遵循最佳實務,並在升級前備份您的中繼資料資料庫。 在升級生產環境之前,我們建議在測試環境中升級,並最終在離峰使用時間升級生產環境。