Skip to content

Hack for change project to gather birding data from social networks.

Notifications You must be signed in to change notification settings

codefortulsa/birdo

Repository files navigation

#Birdo

Scrape social networks for information about birds

Code Climate Test Coverage

##Installation

Run it:

$ python manage.py runserver_plus

Fixtures

Birds

Create bird models from vispedia data

$ python manage.py runscript import_birds
$ python manage.py runscript import_details

Deploying

With dokku!

cd /var/lib/dokku/plugins
sudo git clone https://github.com/rlaneve/dokku-link.git link
#sudo git clone https://github.com/fermuch/dokku-pg-plugin.git postgis
sudo git clone https://github.com/destos/dokku-pgis-plugin.git postgis
dokku config:set birdo NPM_CONFIG_PRODUCTION=true
dokku config:set birdo DISABLE_COLLECTSTATIC=1
dokku config:set birdo DJANGO_CONFIGURATION=Production DJANGO_SETTINGS_MODULE=config
dokku config:set birdo DJANGO_TWITTER_KEY='your twitter key'
dokku config:set birdo DJANGO_TWITTER_SECRET='your twitter secret'
dokku config:set birdo DJANGO_TWITTER_TOKEN='twitter token'
dokku config:set birdo DJANGO_TWITTER_TOKEN_SECRET='twitter token secret'
dokku config:set birdo DJANGO_SECRET_KEY='secret'
dokku config:set birdo DJANGO_DATABASES='postgis://root:[email protected]:32769/db'
dokku config:set birdo GEOS_LIBRARY_PATH='/app/.geodjango/geos/lib/libgeos_c.so'
dokku config:set birdo GDAL_LIBRARY_PATH='/app/.geodjango/gdal/lib/libgdal.so'
dokku config:set birdo PROJ4_LIBRARY_PATH='/app/.geodjango/proj4/lib/libproj.so'
dokku config:set birdo DJANGO_ADMINS=Terry,[email protected];Another Person,[email protected]

After Deploy

dokku run birdo python manage.py migrate