https://github.com/b-ryan/buckstats
Personal data tracking
https://github.com/b-ryan/buckstats
Last synced: 11 months ago
JSON representation
Personal data tracking
- Host: GitHub
- URL: https://github.com/b-ryan/buckstats
- Owner: b-ryan
- Created: 2013-05-15T03:31:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-05T03:12:38.000Z (almost 12 years ago)
- Last Synced: 2025-01-10T20:53:01.017Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.09 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# buckstats #
Contains the API code.
# frontend #
Contains the front-end code. All of it is statically-served content.
# Installation #
mkvirtualenv buckstats
pip install -r requirements.txt
Deployment
* sudo apt-get install python-dev supervisor virtualenvwrapper postgresql-server-dev-9.1
* rename stand.py -> main.py
* Compile coffee files
* Separate static files from the python code in production (use nginx conf)
* sudo mkdir /usr/share/nginx/www/data.buckryan.com
* ^ chown -R buck:buck /usr/share/nginx/www/data.buckryan.com # chown the above
* mkvirtualenv buckstats
* > deploy into ~/.virtualenvs/buckstats/lib/python2.7/site-packages/
* -> will put buckstats on the path
# structure #
/usr/share/nginx/www/data.buckryan.com -- static content
~/.virtualenvs -- virtualenv (use virtualenvwrapper)
/etc/nginx/sites-available/ -- data.buckryan.com
/etc/supervisor/conf.d/stand -- supervisor configuration
# uwsgi #
from http://flaviusim.com/blog/Deploying-Flask-with-nginx-uWSGI-and-Supervisor/ #
```
uwsgi -s /tmp/uwsgi.sock -w main:app -H .venv/ --chmod-socket=666
```
# TODO #
* consider using system packages for things like psycopg2 (ie. large libraries
or libraries that already depend on a system package)