This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Maintenance Guide
Mark Ignacio edited this page Aug 22, 2016
·
1 revision
Whether you're helping to run HackUCF or another organization, you will likely run into some maintenance issues and deployment concerns. Here's a collection of some common tasks.
Knowledge of Google's API structure, how to run Django commands, and Google API permissions can help.
Congrats on maintaining someone else's application...!
Read How it Works. Then you should:
- Back up last year's database. Maybe save it somewhere?
./manage.py dumpdata | bzip2 > ~/1996-1997_ppl.json.bz2
- Delete the database or redeploy somewhere else
- Change
FILE_ID
for membership and resumes to the new sheet IDs, if applicable. - Ensure any new sheets conform to the required formats (do a dry run on the sheet data if the semester hasn't started yet)
- If the previous maintainer will not have access to the new sheet IDs:
- Reauthenticate ppl with your account -
./manage.py update_membership --noauth_local_webserver
- Create yourself a superuser -
./manage.py createsuperuser
- Consider removing previous superusers after you think everything's working
- Reauthenticate ppl with your account -
- Find someone to update ppl's code and documentation this year
Schedule the following commands to run periodically:
./manage.py update_membership -m insertmailchimpkeyhere
./manage.py update_resumes
ppl's first deployment ran this every two hours.