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
40e06060
Commit
40e06060
authored
May 30, 2022
by
Syed Bilal Raees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes to master branch
parent
6c63cfe2
Pipeline
#2065
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
.gitlab-ci.yml
.gitlab-ci.yml
+12
-4
No files found.
.gitlab-ci.yml
View file @
40e06060
...
@@ -17,6 +17,7 @@ build_app:
...
@@ -17,6 +17,7 @@ build_app:
-
whoami
-
whoami
script
:
script
:
-
pip install Flask
-
pip install Flask
-
echo $PATH
# - export FLASK_APP=hello.py
# - export FLASK_APP=hello.py
# - export FLASK_ENV=development
# - export FLASK_ENV=development
# - flask run
# - flask run
...
@@ -25,10 +26,17 @@ build_app:
...
@@ -25,10 +26,17 @@ build_app:
# - systemctl enable python.service
# - systemctl enable python.service
# - systemctl start python.service
# - systemctl start python.service
# - systemctl status python.service
# - systemctl status python.service
-
echo "deploying to staging server"
# - echo "deploying to staging server"
-
sudo systemctl start python.service
# - sudo systemctl start python.service
-
sudo systemctl start prod.service
# - sudo systemctl start prod.service
-
sudo systemctl status python.service
# - sudo systemctl status python.service
-
|
if [[ $CI_COMMIT_REF_NAME == master ]]; then
echo "deploying to prod server"
sudo systemctl start prod.service
elif [[ $CI_COMMIT_REF_NAME == dev ]]; then
sudo systemctl start python.service
fi
# environment:
# environment:
# name: staging
# name: staging
# url : http://localhost/test
# url : http://localhost/test
...
...
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