azureredash

Upgrade Re:dash

NOTE: It is strongly recommended to create a backup before starting the update process. If you have important data, create and restore a backup to ensure that everything works properly.

You can upgrade the Bitnami Re:dash Stack following the steps below.

  • Download the latest release tarball from GitHub.

  • Create a backup of your current version:

    $ mv /opt/bitnami/apps/redash/htdocs /opt/bitnami/apps/redash/htdocs.bak
    
  • Create the htdocs directory for the new version and unpack it there:

    $ mkdir /opt/bitnami/apps/redash/htdocs
    $ tar -C /opt/bitnami/apps/redash/htdocs -xvf /path/to/new/tarball
    
  • Copy your .env file and your venv/ directory from the current version to the new version:

    $ cp /opt/bitnami/apps/redash/htdocs.bak/.env /opt/bitnami/apps/redash/htdocs
    $ cp -R /opt/bitnami/apps/redash/htdocs.bak/venv /opt/bitnami/apps/redash/htdocs
    
  • Check if you have any new migrations in the new version. Check it by running this command:

    $ diff /opt/bitnami/apps/redash/htdocs/migrations /opt/bitnami/apps/redash/htdocs.bak/migrations
    
  • Apply new migrations (if it is necessary):

    $ cd /opt/bitnami/apps/redash/htdocs
    $ . venv/bin/activate
    $ ./bin/run python migrations/new_migrations.py
    
  • Install any new requirements:

    $ cd /opt/bitnami/apps/redash/htdocs
    $ . venv/bin/activate
    $ pip install -r requirements.txt
    
  • Restart servers:

    $ /opt/bitnami/ctlscript.sh restart
    
Last modification August 31, 2018