Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hackathon-login
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
YAHYAOUI Firas
Hackathon-login
Commits
58c43d8f
Commit
58c43d8f
authored
1 year ago
by
YAHYAOUI Firas
Browse files
Options
Downloads
Patches
Plain Diff
add: basic Flask project
parent
cf251222
No related branches found
No related tags found
No related merge requests found
Pipeline
#19351
passed
1 year ago
Stage: external
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Procfile
+1
-0
1 addition, 0 deletions
Procfile
app.py
+14
-0
14 additions, 0 deletions
app.py
requirements.txt
+1
-0
1 addition, 0 deletions
requirements.txt
templates/index.html
+10
-0
10 additions, 0 deletions
templates/index.html
with
26 additions
and
0 deletions
Procfile
0 → 100644
+
1
−
0
View file @
58c43d8f
web: python app.py
This diff is collapsed.
Click to expand it.
app.py
0 → 100644
+
14
−
0
View file @
58c43d8f
import
os
from
flask
import
Flask
from
flask
import
render_template
from
flask
import
request
app
=
Flask
(
__name__
)
@app.route
(
"
/
"
)
def
hello
():
return
render_template
(
'
index.html
'
)
if
__name__
==
"
__main__
"
:
port
=
int
(
os
.
environ
.
get
(
"
PORT
"
,
5000
))
app
.
run
(
host
=
'
0.0.0.0
'
,
port
=
port
)
This diff is collapsed.
Click to expand it.
requirements.txt
0 → 100644
+
1
−
0
View file @
58c43d8f
flask
This diff is collapsed.
Click to expand it.
templates/index.html
0 → 100644
+
10
−
0
View file @
58c43d8f
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
/>
<title>
Celery Flask Application
</title>
</head>
<body>
<h1>
Greetings from Scalingo
</h1>
</body>
</html>
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