mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
1.0 KiB
1.0 KiB
Upgrading to a new version
Docker
-
Check out the Changelog before upgrading!
-
Pull the new images and restart the stack:
docker-compose pull docker-compose up
Manual Installation
-
Check out the Changelog before upgrading!
-
Pull the new changes from the git repository, checkout the new version and then build the new release:
git pull git checkout $(git describe --tags `git rev-list --tags --max-count=1`) mix deps.get --only prod npm install --prefix ./assets && npm run deploy --prefix ./assets MIX_ENV=prod mix do phx.digest, release --overwrite -
Most upgrades requires to run new database migrations. If so continue with the following command:
_build/prod/rel/teslamate/bin/teslamate eval "TeslaMate.Release.migrate" -
Finally, re-import the Grafana dashboards:
LOGIN="user:pass" ./grafana/dashboards.sh restore