Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.01 KB

upgrading.md

File metadata and controls

41 lines (26 loc) · 1.01 KB

Upgrading to a new version

Docker Containers

  1. Check out the Changelog before upgrading!

  2. Ensure your credentials are correct in docker-compose.yml (or .env if you are using Docker (advanced))

  3. Pull the new images and restart the stack:

docker-compose pull

docker-compose up
  1. Log in and check

Manual Installation

  1. Check out the Changelog before upgrading!

  2. 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)
    
    mix deps.get --only prod
    npm install --prefix ./assets && npm run deploy --prefix ./assets
    mix phx.digest
    MIX_ENV=prod mix release
  3. 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"
  4. Finally, re-import the dashboards.