This repository contains a set of analytics for crewpool.
This repo contains code used for personal and non-commercial use by a group of NFL fans and tech hobbyists.
pip install -r requirements.txt
FLASK_DEBUG=1 python server.py
The Data Server is a simple python/Flask RESTful web server.
The Data Server uses a virtuel environment on the server to manage all python
dependencies. To activate the virtual environment, navigate to
APP_HOME/crewpool/
and run
source env/bin/activate
In production, the server runs under gunicorn in daemon mode. To start the server, run:
source env/bin/activate
gunicorn --worker-class gevent --workers 1 --timeout 300 --log-file logs/gunicorn.log --bind 127.0.0.1:8008 server:app --daemon
Logs can be found in APP_HOME/logs/