Giter Site home page Giter Site logo

Set Up

  1. vagrant box add \ precise64 http://files.vagrantup.com/precise64.box

  2. vagrant up

    web: gunicorn -w 1 -t 600 app:app

    celery worker --app app:celery celery worker --app app:celery --concurrency=4 celery worker --app app:celery --autoreload celery worker --app app:celery --autoscale=10,2 env CELERYD_FSNOTIFY=kqueue celery worker -l info --app app:celery --autoreload

for gunicorn to show errors use DEBUG = True https://github.com/gipi/dokku-django-example

create persistent storage in dokku for solr at /var/tmp/solr_cache

Real Setup

brew install rbenv ruby-build
rbenv install 1.9.3-p484
rbenv local 1.9.3-p484

gem install bundler
bundle install

brew install pyenv pyenv-virtualenvwrapper
pyenv install 2.7.8
pyenv local 2.7.8

mkvirtualenv pf
pip install numpy==1.7.1
pip install --upgrade setuptools
pip install --upgrade distribute
pip install -r requirements.txt

brew install node
npm install -g grunt bower
bower install
npm install

createdb framingappdb
python manage.py createdb
python manage.py seeddb

mkdir -p /Users/atul/Desktop/solr-copy/ rsync -rave "ssh -i /Users/atul/Desktop/Credentials/politicalframing.pem" [email protected]:/home/ubuntu/solr-4.6.1 /Users/atul/Desktop/solr-copy/

  # print "SOLR QUERY"
  # from pprint import pprint
  # query_obj=solr_query.__dict__['query_obj'].__dict__
  # pprint(query_obj)
  # import pdb; pdb.set_trace()
  # for subq in query_obj['subqueries']:
  #   pprint(subq.__dict__)
  # pprint(solr_query.__dict__['subqueries'][1].__dict__)

python manage.py deletedb && python manage.py createdb && python manage.py seeddb

mysql --user=root mysql
CREATE USER 'capitolwords'@'localhost' IDENTIFIED BY 'capitolwords';
GRANT ALL PRIVILEGES ON *.* TO 'capitolwords'@'localhost' WITH GRANT OPTION;
CREATE DATABASE capitolwords;
mysql --user=root capitolwords < ../politicalframing/capitolwords_2014-08-16.sql

Political Framing's Projects

congress-legislators icon congress-legislators

Members of the United States Congress, 1789-Present, in YAML, as well as committees, presidents, and vice presidents.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.