Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aura-engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Kruse
aura-engine
Commits
99498fb4
Commit
99498fb4
authored
5 years ago
by
Christian Pointner
Browse files
Options
Downloads
Patches
Plain Diff
add initdb helper script
parent
8742a9e3
Branches
master-old
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
configuration/engine.ini
+5
-0
5 additions, 0 deletions
configuration/engine.ini
initdb.py
+28
-0
28 additions, 0 deletions
initdb.py
with
34 additions
and
1 deletion
README.md
+
1
−
1
View file @
99498fb4
...
...
@@ -79,7 +79,7 @@ sudo apt install \
```
bash
sudo
pip3
install
\
Flask Flask-SQLAlchemy
\
mysqlclient redis
simplejson
\
mysqlclient redis
\
mutagen validators
```
...
...
This diff is collapsed.
Click to expand it.
configuration/engine.ini
+
5
−
0
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
...
...
This diff is collapsed.
Click to expand it.
initdb.py
0 → 100755
+
28
−
0
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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment