This project contains the code for VPR's School Closings page.
- Make sure you have Python 2.7 installed.
- Clone the repo locally.
git clone git@github.com:vprnet/school-closings.git
- Install
pip
- Install virtualenv.
pip install virtualenv
- Create a virtual environment for the app.
virtualenv venv
- Install the app requirements.
pip install -r requirements.txt
- Duplicate
_config.py
asconfig.py
, which will be your private, git-ignored file of keys. - Grab the secret
homepage.json
file from someone on the VPR team.
- Enter the virtual environment.
source venv/bin/activate
- To run locally, just hit a quick
python app/index.py
and head to127.0.0.1:5000
This project runs on a cron job in Webfaction. The cron is currently set to run every ten minutes, pushing up to Amazon S3. To update the production code, SSH into our Webfaction server and update changes to the production code.