Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmt120-2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
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
Felix Chadwick-Smith
cmt120-2
Merge requests
!11
added more to wsgi.py
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
added more to wsgi.py
master
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Felix Chadwick-Smith
requested to merge
master
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
7e1320b1
1 commit,
1 year ago
1 file
+
8
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
wsgi.py
+
8
−
2
Options
import
os
import
sys
import
logging
from
app
import
app
as
application
from
markupsafe
import
Markup
@@ -6,5 +8,9 @@ sys.modules['flask'].Markup = Markup
logging
.
basicConfig
(
stream
=
sys
.
stderr
)
if
__name__
==
'
__main__
'
:
application
.
run
(
host
=
'
0.0.0.0
'
,
port
=
int
(
os
.
environ
.
get
(
'
PORT
'
,
8080
)))
try
:
if
__name__
==
'
__main__
'
:
application
.
run
(
host
=
'
0.0.0.0
'
,
port
=
int
(
os
.
environ
.
get
(
'
PORT
'
,
8080
)))
except
Exception
as
e
:
print
(
f
"
Exception during startup:
{
str
(
e
)
}
"
)
sys
.
exit
(
1
)
Loading