Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pythonApp
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
Syed Bilal Raees
pythonApp
Commits
2f456146
Commit
2f456146
authored
3 years ago
by
Syed Bilal Raees
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.mynisum.com/sbilal/pythonapp
parents
ef94cbf9
282d5e55
Pipeline
#2104
failed with stage
in 9 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
.gitlab-ci.yml
.gitlab-ci.yml
+2
-1
hello.py
hello.py
+1
-1
No files found.
.gitlab-ci.yml
View file @
2f456146
...
@@ -36,7 +36,8 @@ build_app:
...
@@ -36,7 +36,8 @@ build_app:
git checkout feature
git checkout feature
sudo systemctl start python.service
sudo systemctl start python.service
elif [[ $CI_COMMIT_REF_NAME = dev ]]; then
elif [[ $CI_COMMIT_REF_NAME = dev ]]; then
sudo systemctl start python.service
echo "it's a dev server"
sudo systemctl start prod.service
else
else
echo "hello world"
echo "hello world"
fi
fi
...
...
This diff is collapsed.
Click to expand it.
hello.py
View file @
2f456146
...
@@ -7,7 +7,7 @@ app.config["DEBUG"] = True
...
@@ -7,7 +7,7 @@ app.config["DEBUG"] = True
@
app
.
route
(
'/'
,
methods
=
[
'GET'
])
@
app
.
route
(
'/'
,
methods
=
[
'GET'
])
def
home
():
def
home
():
return
"<h1>HelloO
! DevOps Pakistan
</h1><p>This site is a prototype API for greeting Nisum DevOps!</p>"
return
"<h1>HelloO
DevOps Pak!
</h1><p>This site is a prototype API for greeting Nisum DevOps!</p>"
app
.
run
(
host
=
'myApp.com'
,
port
=
5000
)
app
.
run
(
host
=
'myApp.com'
,
port
=
5000
)
...
...
This diff is collapsed.
Click to expand it.
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