Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.26 KB

README.markdown

File metadata and controls

46 lines (27 loc) · 1.26 KB

This repository is the code for the Universal Subtitles project.

The full documentation can be found at http://dev.universalsubtitles.org/site-docs/.

Quick Start

To run the development version:

  1. Git clone the repository:

     git clone git://github.com/pculture/unisubs.git unisubs
    

    Now the entire project will be in the unisubs directory.

  2. Install VirtualBox if you don't have it yet. Then type:

     vagrant up
    

    This is going to create a vm and provision it. It should take 10-15 minutes. Remember what mom said: a watched pot never boils.

  3. Switch over to your vagrant vm with:

     vagrant ssh
    

    Then run following commands:

     cd /opt/unisubs
     source venv/bin/activate
     python manage.py syncdb --all --settings=dev_settings
     python manage.py migrate --fake --settings=dev_settings
     sudo ./deploy/update_solr_schema_vagrant.sh
    
  4. Add unisubs.example.com to your hosts file, pointing at 127.0.0.1. This is necessary for Twitter and Facebook oauth to work correctly.

  5. In your vagrant vm (the one you switched to in step 3), run the site with:

     ./dev-runserver.sh
    

    You can access the site at http://unisubs.example.com:8000.