diff --git a/README.md b/README.md index 62638f25997c7492c4285387482db46c008ddfeb..614d3a02f41918cb9f6d5875b33f6759e2e50b46 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ sudo apt install \ ```bash sudo pip3 install \ Flask Flask-SQLAlchemy \ - mysqlclient redis simplejson \ + mysqlclient redis \ mutagen validators ``` diff --git a/configuration/engine.ini b/configuration/engine.ini index daf6fac023251ce7e55a0a696b67dc4ff409de32..06b7961f9d86a9537063631be75f5238bb4138d8 100644 --- a/configuration/engine.ini +++ b/configuration/engine.ini @@ -8,6 +8,11 @@ db_name="engine" db_pass="engine" db_host="localhost" +[redis] +redis_host="localhost" +redis_port=6379 +redis_db=0 + [monitoring] # how often should i check the diskspace. defaults to 600s = 10m diskspace_check_interval=20 diff --git a/initdb.py b/initdb.py new file mode 100755 index 0000000000000000000000000000000000000000..a86501d95a582a2f616c152efbfcec07662b5b57 --- /dev/null +++ b/initdb.py @@ -0,0 +1,28 @@ +#!/usr/bin/python3 +# +# engine +# +# Playout Daemon for autoradio project +# +# +# Copyright (C) 2017-2018 Gottfried Gaisbauer <gottfried.gaisbauer@servus.at> +# +# This file is part of engine. +# +# engine is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# any later version. +# +# engine is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with engine. If not, see <http://www.gnu.org/licenses/>. +# + +from libraries.database.broadcasts import AuraDatabaseModel + +AuraDatabaseModel.recreate_db(systemexit=True)