turn urls into torrent swarms
2016-05-10 16:24:41 +02:00
etc merge changes from production 2014-04-10 22:09:19 +02:00
url2torrent fix urls without name 2016-05-10 16:24:41 +02:00
wsgi inital project layout 2010-06-10 11:32:38 +02:00
.gitignore merge changes from production 2014-04-10 22:09:19 +02:00
fabfile.py merge changes from production 2014-04-10 22:09:19 +02:00
LICENSE add agpl 2010-06-11 14:41:23 +02:00
README merge changes from production 2014-04-10 22:09:19 +02:00
requirements.txt merge changes from production 2014-04-10 22:09:19 +02:00

url2torrent
Prepare:
    sudo apt-get install rabbitmq-server git python-dev python-chardet

Get:
    git clone https://r-w-x.org/url2torrent.git
    cd url2torrent
    virtualenv --system-site-packages .
    ./bin/pip install -r requirements.txt
    
    you also need ffmpeg2theora installed in your PATH

Develop:
    create url2torrent/local_settings.py

    . bin/activate
    cd url2torrent
    python manage.py shell

    start server:
        python manage.py runserver

    in another terminal start worker:
        python manage.py worker

Deploy:
    create url2torrent/local_settings.py

    create /etc/nginx/sites-available/default

    install etc/init/url2torrent.conf
    install etc/init/url2torrent-worker.conf
    
    check fabfile.py for deployment on url2torrent.net

Install rabbitmq and carrot:
    sudo apt-get install rabbitmq-server
    
    sudo rabbitmqctl add_user url2torrent fixme
    sudo rabbitmqctl add_vhost /url2torrent
    sudo rabbitmqctl set_permissions -p /url2torrent url2torrent "^url2torrent-.*" ".*" ".*"

    update BROKER_* settings in local_settings.py: