execute: docker run -d -p 80:80 cal
- migrate cal:
python3 manage.py migrate
- run scrawler:
python3 run.py <semester: e.q. 1071>
- 把學校的系所資料匯入資料庫中:
cd cal; python manage.py buildDept NCHU
- run scrawler
每學期更新學期代碼
docker restart cal
就這樣XD
- cal: https://github.com/Stufinite/container/blob/master/apps/cal/cal/static/timetable/json/NCHU/Department.json
- scrawler: https://github.com/Stufinite/container/blob/c71542754379c0dd52ddaac38e614baa867abddd/apps/scrawler/scrawler/spiders/NCHU/department.json
- https://github.com/Stufinite/inferno
- bower install完之後記得把
bower_components/
給 copy進../static
資料夾中 - 去cloudflare按purge everything