Code Monkey home page Code Monkey logo

sumsarizer's Introduction

SUMSarizer

The Berkeley SUMSarizer

Install

Install Python 2.7 and pip.

https://www.python.org/download/releases/2.7/

https://pip.pypa.io/en/latest/

Then,

./scripts/install.sh

Install a local Postgres database. The app expects a database named "sums".

To deploy to the server, install the Heroku toolbelt:

https://toolbelt.heroku.com/

Config

The file .env contains API ids and secrets.

See the file env.sample for what needs to go here. API keys are stored in the encrypted secrets.txt.

You can also retrieve API keys from the Heroku management UI.

Secrets

Secrets stored in the repository with Ansible Vault. Contact the repository maintainer for the password.

Install Ansible.

Edit files:

ansible-value edit secrets.txt

More: http://docs.ansible.com/playbooks_vault.html#id6

Run

./scripts/start.sh

Run like prod (useful to test if foreman is crashing on deploy):

./scripts/prod.sh

Deploy

git push heroku master

Make sure there is a web process running:

heroku ps:scale web=1

Migrations

To initialize the DB schema run:

python manage.py db upgrade

If you change a model file in models.py, run:

python manage.py db migrate

to generate the migration file. Inspect the migration file in migrations/versions/...py If it looks good, run it with:

python manage.py db upgrade

Running the migration on prod:

heroku run python manage.py db upgrade

sumsarizer's People

Contributors

marcpare avatar

Watchers

 avatar  avatar  avatar

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.