Version Update

Version Update - 图1warning

Version upgrades may involve updates to the database table structure, and the table structure updates depend on the Django-provided migrate tool. The normal operation of this tool depends on the migrations directory and the django_migrations table generated during installation.

Do not delete or modify these directories or tables, otherwise, after the version upgrade involving table structure updates, it may cause problems such as missing table fields.

Version Update - 图2warning

If you are currently deploying the v2.x.x version (system settings / about), do not upgrade to the v3 version through this upgrade tool, otherwise it will cause abnormal operation! [#419](

Docker installation, version update

  1. # Default update to the latest version
  2. # Spug is the container name, which can also be replaced by your own container ID
  3. docker exec -i spug python3 /data/spug/spug_api/manage.py update
  4. # Restart the container after the update is complete
  5. docker restart spug

Manual installation, version update

  1. # Default update to the latest version
  2. cd spug_api
  3. source venv/bin/activate
  4. python manage.py update
  5. # Restart service
  6. supervisorctl restart all