Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
013cb0d4
Commit
013cb0d4
authored
Nov 24, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix var name
parent
99d9f9e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
server_comex_registration.py
server_comex_registration.py
+2
-3
No files found.
server_comex_registration.py
View file @
013cb0d4
...
@@ -27,13 +27,13 @@ from re import sub
...
@@ -27,13 +27,13 @@ from re import sub
from
os
import
environ
from
os
import
environ
# ============= read environ =============
# ============= read environ =============
MY_DEBUG_FLAG
=
(
'
MY_
DEBUG_FLAG'
in
environ
)
MY_DEBUG_FLAG
=
(
'DEBUG_FLAG'
in
environ
)
MY_HOST
=
environ
.
get
(
'HOST'
,
'0.0.0.0'
)
MY_HOST
=
environ
.
get
(
'HOST'
,
'0.0.0.0'
)
# ============= app creation =============
# ============= app creation =============
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
app
.
config
[
'DEBUG'
]
=
(
'MY_DEBUG_FLAG'
in
environ
)
app
.
config
[
'DEBUG'
]
=
MY_DEBUG_FLAG
# templating setup
# templating setup
...
@@ -221,4 +221,3 @@ def read_records(incoming_data):
...
@@ -221,4 +221,3 @@ def read_records(incoming_data):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
# our app should be bound to an ip (cf. http://stackoverflow.com/a/30329547/2489184)
# our app should be bound to an ip (cf. http://stackoverflow.com/a/30329547/2489184)
app
.
run
(
host
=
MY_HOST
)
app
.
run
(
host
=
MY_HOST
)
Write
Preview
Markdown
is supported
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