1. Olemis Lang
  2. cheesecake-service

Commits

infrared  committed 7bf1884

Detailed instructions on resetting the service.

  • Participants
  • Parent commits b8bd214
  • Branches default

Comments (0)

Files changed (2)

File INSTALL

View file
 
 Unit tests use "cheesecake_test" database, so if you want to run them repeat
 last two steps for "cheesecake_test" database.
+
+
+Clearing Cheesecake service data
+--------------------------------
+
+When you want Cheesecake service to "forgot" all past scores and runs, do this
+four simple steps.
+
+1. First of all, stop the cheesecake_daemon.
+2. Now you can clear the database::
+
+   $ cd ..cheesecake_service_directory.. # use appropriate path
+   $ python contrib/clean_database.py
+
+3. Then clean the logs directory (pointed by LOG_DIRECTORY variable in config.py).
+4. Lastly, set TIMESTAMP_FILE (defined in config.py again) modification time to
+   some fixed date (probably August 10th like the last time) by "touch -d".
+
+After this steps Cheesecake service can be enabled again.

File contrib/clean_database.py

View file
+import sys
+sys.path.insert(0, '../')
+
 import store
 from config import LOG_DIRECTORY, TIMESTAMP_FILE