Nikola Kotur bc70abed40 docs: updated running information | %!s(int64=9) %!d(string=hai) anos | |
---|---|---|
bin | %!s(int64=10) %!d(string=hai) anos | |
conf | %!s(int64=9) %!d(string=hai) anos | |
database | %!s(int64=10) %!d(string=hai) anos | |
db_repository | %!s(int64=10) %!d(string=hai) anos | |
phosic | %!s(int64=10) %!d(string=hai) anos | |
static | %!s(int64=10) %!d(string=hai) anos | |
templates | %!s(int64=10) %!d(string=hai) anos | |
tests | %!s(int64=10) %!d(string=hai) anos | |
.gitignore | %!s(int64=10) %!d(string=hai) anos | |
Procfile | %!s(int64=10) %!d(string=hai) anos | |
README.md | %!s(int64=9) %!d(string=hai) anos | |
db_create.py | %!s(int64=10) %!d(string=hai) anos | |
db_downgrade.py | %!s(int64=10) %!d(string=hai) anos | |
db_migrate.py | %!s(int64=10) %!d(string=hai) anos | |
db_upgrade.py | %!s(int64=10) %!d(string=hai) anos | |
flask_app.py | %!s(int64=10) %!d(string=hai) anos | |
main.py | %!s(int64=10) %!d(string=hai) anos | |
requirements.txt | %!s(int64=10) %!d(string=hai) anos |
Simple web service to join mp3 file and a picture using Flask, ffmpeg, Celery, SQLite and Redis.
In development mode, create virtual environment and install requirements.txt
with pip, and then create the database:
./db_create.py
./db_upgrade.py
After that just use the script in bin
folder to run it:
./bin/run.sh
Now you can access the website at http://localhost:8000
To run phosic in production see conf
directory for nginx configuration and
supervisord units.