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
Wiki
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
Roman Karwacik
website
Commits
b0ce2e5a
Commit
b0ce2e5a
authored
8 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Fix debug mode detection for default config
parent
0690d180
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
run.py
+0
-2
0 additions, 2 deletions
run.py
server.py
+2
-1
2 additions, 1 deletion
server.py
with
2 additions
and
3 deletions
run.py
+
0
−
2
View file @
b0ce2e5a
#!/usr/bin/env python
from
server
import
*
global
is_debug
is_debug
=
True
if
__name__
==
'
__main__
'
:
app
.
run
(
threaded
=
True
)
This diff is collapsed.
Click to expand it.
server.py
+
2
−
1
View file @
b0ce2e5a
...
...
@@ -4,6 +4,7 @@ from functools import wraps
from
datetime
import
date
,
timedelta
,
datetime
,
time
,
MINYEAR
import
threading
import
os
import
sys
import
hashlib
import
random
...
...
@@ -24,7 +25,7 @@ timer.start()
config
=
app
.
config
config
.
from_pyfile
(
'
config.py.example
'
,
silent
=
True
)
if
'
is_debug
'
in
globals
(
):
if
not
sys
.
argv
[
0
].
endswith
(
'
run.py
'
):
config
[
'
SQLITE_INIT_DATA
'
]
=
False
config
[
'
DEBUG
'
]
=
False
config
.
from_pyfile
(
'
config.py
'
,
silent
=
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