Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
proto-buggy-editor
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Whiteland David TEAS024
proto-buggy-editor
Commits
9fbdc399
Commit
9fbdc399
authored
1 month ago
by
Dave Whiteland
Browse files
Options
Downloads
Patches
Plain Diff
add BUGGY_EDITOR_PORT for clearer control over port number
parent
0a9709b0
Branches
main
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app.py
+4
-1
4 additions, 1 deletion
app.py
with
4 additions
and
1 deletion
app.py
+
4
−
1
View file @
9fbdc399
from
flask
import
Flask
,
jsonify
,
render_template
,
request
,
send_file
import
os
import
sqlite3
as
sql
# the flask application: uses the webserver imported from the flask module:
...
...
@@ -99,4 +100,6 @@ def send_favicon():
# with control-C), it will run forever... so any code you put _after_ app.run
# here won't normally be run.
if
__name__
==
"
__main__
"
:
app
.
run
(
debug
=
True
,
host
=
"
0.0.0.0
"
,
port
=
5000
)
allocated_port
=
os
.
environ
.
get
(
'
BUGGY_EDITOR_PORT
'
)
or
5000
app
.
run
(
debug
=
True
,
host
=
"
0.0.0.0
"
,
port
=
allocated_port
)
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