Upgrading Noflux
Please, do not update the software blindly. Always check for breaking changes if any.
Instructions ¶
- Export the environment variable
DATABASE_URLif not already done - Disconnect all users by flushing all sessions:
noflux -flush-sessions - Stop the process
- Backup your database
- Check that your backup is really working
- Upgrade the
nofluxbinary itself - Run database migrations:
noflux -migrateor set the environment variableRUN_MIGRATIONS=1 - Start the process again
Debian Systems ¶
Follow the instructions mentioned above and run: dpkg -i noflux_0.x.x_amd64.deb.
If you are using the APT repository, run apt upgrade noflux.
Do not forget to run the database migrations. The most simple way is to add RUN_MIGRATIONS=1 in your noflux.conf.
RPM Systems ¶
Follow the instructions mentioned above and run: rpm -Uvh noflux-0.x.x-1.0.x86_64.rpm.
Do not forget to run the database migrations as mentioned above.
Docker Containers ¶
- Pull the new image with the new tag:
docker pull noflux/noflux:2.x.x - Stop and remove the old container:
docker stop <container_name> && docker rm <container_name> - Start a new container with the latest tag:
docker run -d -p 80:8080 noflux/noflux:0.x.x
If you use Docker Compose, define the new tag in the YAML file and restart the container.
Do not forget to run the database migrations. Set the environment variable RUN_MIGRATIONS=1.