Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lars Kruse
aura-engine
Commits
99498fb4
Commit
99498fb4
authored
Aug 10, 2019
by
Christian Pointner
Browse files
add initdb helper script
parent
8742a9e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
99498fb4
...
...
@@ -79,7 +79,7 @@ sudo apt install \
```
bash
sudo
pip3
install
\
Flask Flask-SQLAlchemy
\
mysqlclient redis
simplejson
\
mysqlclient redis
\
mutagen validators
```
...
...
configuration/engine.ini
View file @
99498fb4
...
...
@@ -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
...
...
initdb.py
0 → 100755
View file @
99498fb4
#!/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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment