Commit 40e06060 authored by Syed Bilal Raees's avatar Syed Bilal Raees

changes to master branch

parent 6c63cfe2
Pipeline #2065 passed with stage
in 9 seconds
......@@ -17,6 +17,7 @@ build_app:
- whoami
script:
- pip install Flask
- echo $PATH
# - export FLASK_APP=hello.py
# - export FLASK_ENV=development
# - flask run
......@@ -25,10 +26,17 @@ build_app:
# - systemctl enable python.service
# - systemctl start python.service
# - systemctl status python.service
- echo "deploying to staging server"
- sudo systemctl start python.service
- sudo systemctl start prod.service
- sudo systemctl status python.service
# - echo "deploying to staging server"
# - sudo systemctl start python.service
# - sudo systemctl start prod.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:
# name: staging
# url : http://localhost/test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment