Skip to content

Instantly share code, notes, and snippets.

@fronbasal
Last active February 6, 2025 19:50
Show Gist options
  • Save fronbasal/013323102e1482a79b6238e9b3be7f2c to your computer and use it in GitHub Desktop.
Save fronbasal/013323102e1482a79b6238e9b3be7f2c to your computer and use it in GitHub Desktop.
Pretix update guideline (S3)

Update steps to prevent OfflineGenerationError

  • Assumes custom env (i.e. custom Django settings module) at .env
  • You need to run compress (django-compressor) to it syncs the new assets to S3
sudo -u pretix -i 
source venv/bin/activate
export $(cat .env)
pip3 install -U --upgrade-strategy eager pretix gunicorn
python -m pretix migrate
python -m pretix rebuild
python -m pretix updateassets
python -m pretix compress
exit
systemctl restart pretix-web pretix-worker

Important: run compress, then reboot! Otherwise after new assets, it will hard crash and complain about missing assets on CDN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment