Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Video AG Infrastruktur
website
Commits
0690d180
Commit
0690d180
authored
8 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Use config.py.example as default config
parent
c77660e3
Branches
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
config.py.example
+9
-3
9 additions, 3 deletions
config.py.example
run.py
+2
-0
2 additions, 0 deletions
run.py
server.py
+4
-11
4 additions, 11 deletions
server.py
with
15 additions
and
14 deletions
config.py.example
+
9
−
3
View file @
0690d180
#
Config for testing purposes only, don't run this
in production!
#
Defaults for development ,do not use
in production!
DEBUG = True
DEBUG = True
VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de'
DB_SCHEMA = 'db_schema.sql'
DB_DATA = 'db_example.sql'
#DB_ENGINE = 'mysql'
#MYSQL_HOST = 'localhost'
#MYSQL_HOST = 'localhost'
#MYSQL_USER = 'videoag'
#MYSQL_USER = 'videoag'
#MYSQL_PASSWD = 'somuchsecret'
#MYSQL_PASSWD = 'somuchsecret'
#MYSQL_DB = 'videos'
#MYSQL_DB = 'videos'
#DB_ENGINE = 'mysql'
SQLITE_DB = 'db.sqlite'
DB_ENGINE = 'sqlite'
DB_ENGINE = 'sqlite'
SQLITE_DB = 'db.sqlite'
SQLITE_INIT_SCHEMA = True
SQLITE_INIT_SCHEMA = True
SQLITE_INIT_DATA = True
SQLITE_INIT_DATA = True
#LDAP_HOST = 'ldaps://rumo.fsmpi.rwth-aachen.de'
This diff is collapsed.
Click to expand it.
run.py
+
2
−
0
View file @
0690d180
#!/usr/bin/env python
#!/usr/bin/env python
from
server
import
*
from
server
import
*
global
is_debug
is_debug
=
True
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
app
.
run
(
threaded
=
True
)
app
.
run
(
threaded
=
True
)
This diff is collapsed.
Click to expand it.
server.py
+
4
−
11
View file @
0690d180
...
@@ -23,17 +23,10 @@ timer.daemon = True
...
@@ -23,17 +23,10 @@ timer.daemon = True
timer
.
start
()
timer
.
start
()
config
=
app
.
config
config
=
app
.
config
config
[
'
DB_SCHEMA
'
]
=
'
db_schema.sql
'
config
.
from_pyfile
(
'
config.py.example
'
,
silent
=
True
)
config
[
'
DB_DATA
'
]
=
'
db_example.sql
'
if
'
is_debug
'
in
globals
():
config
[
'
DB_ENGINE
'
]
=
'
sqlite
'
config
[
'
SQLITE_INIT_DATA
'
]
=
False
config
[
'
SQLITE_DB
'
]
=
'
db.sqlite
'
config
[
'
DEBUG
'
]
=
False
config
[
'
SQLITE_INIT_SCHEMA
'
]
=
True
config
[
'
SQLITE_INIT_DATA
'
]
=
False
config
[
'
DEBUG
'
]
=
False
config
[
'
VIDEOPREFIX
'
]
=
'
https://videoag.fsmpi.rwth-aachen.de
'
if
__name__
==
'
__main__
'
:
config
[
'
SQLITE_INIT_DATA
'
]
=
True
config
[
'
DEBUG
'
]
=
True
config
.
from_pyfile
(
'
config.py
'
,
silent
=
True
)
config
.
from_pyfile
(
'
config.py
'
,
silent
=
True
)
if
config
[
'
DEBUG
'
]:
if
config
[
'
DEBUG
'
]:
app
.
jinja_env
.
auto_reload
=
True
app
.
jinja_env
.
auto_reload
=
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