|
1 year ago | |
---|---|---|
.gitea | 1 year ago | |
activitypub | 1 year ago | |
controllers | 1 year ago | |
migrations | 1 year ago | |
static | 1 year ago | |
templates | 1 year ago | |
tests | 1 year ago | |
tmp | 2 years ago | |
translations | 1 year ago | |
uploads | 2 years ago | |
.dockerignore | 1 year ago | |
.drone.yml | 1 year ago | |
.gitignore | 1 year ago | |
Dockerfile-web | 1 year ago | |
Dockerfile-worker | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
app.py | 1 year ago | |
babel.cfg | 2 years ago | |
config.py.sample | 1 year ago | |
dbseed.py | 1 year ago | |
entrypoint.sh | 1 year ago | |
forms.py | 1 year ago | |
messages.pot | 1 year ago | |
models.py | 1 year ago | |
notes-translation.txt | 1 year ago | |
requirements.txt | 1 year ago | |
setup.cfg | 1 year ago | |
setup.py | 1 year ago | |
shelltools.py | 1 year ago | |
utils.py | 1 year ago | |
workers.py | 1 year ago |
Install a BDD (mysql is supported, SQLite maybe, PostgreSQL should be)
Makes sure that encoding is/will be in UNICODE/UTF-8
git clone http://dev.sigpipe.me/dashie/reel2bits
cd reel2bits
git submodule init
git submodule update
pip3 install --requirement requirements.txt # if present
# Install Pydub dependencies: https://github.com/jiaaro/pydub#dependencies
cp config.py.sample config.py
$EDITOR config.py
export FLASK_ENV=<development or production>
$ create your postgresql database, like 'reel2bits'
$ with the postgresql shell, run using superuser on the reel2bits database:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
flask db upgrade
flask dbseed
flask run
Don't forget to update default Config by getting to "Your user" (top right) then "Config"
Also install this tool : https://github.com/bbc/audiowaveform
And adapt the path to it in config.py
If you have enabled registration in config, the first user registered will be ADMIN !
Or if you have disabled registration, use the flask createuser
command to create an user.
TODO
TODO
Run the workers using:
$ dramatiq workers -Q <queue name>
See also ‘dramatiq --help’ for all config (threads etc.) infos
List of queues and descriptions: