Commit 48842c89 authored by Syed Bilal Raees's avatar Syed Bilal Raees

idk

parent 05d4c372
Pipeline #2047 passed with stage
in 9 seconds
...@@ -26,7 +26,7 @@ build_app: ...@@ -26,7 +26,7 @@ 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 stagings server"
- sudo systemctl start python.service - sudo systemctl start python.service
- sudo systemctl status python.service - sudo systemctl status python.service
# environment: # environment:
......
stages:
# - test
# - deploy
- build
#test_app:
build_app:
image: python:3.6
# stage: test
stage: build
before_script:
- python3 -V
- ls -ltr
- python3 -m venv venv
- python3 -m venv python3-virtualenv
- source python3-virtualenv/bin/activate
- pwd
- whoami
script:
- pip install Flask
# - export FLASK_APP=hello.py
# - export FLASK_ENV=development
# - flask run
# - echo "deploy to staging server"
# - systemctl daemon-reload
# - systemctl enable python.service
# - systemctl start python.service
# - systemctl status python.service
- echo "deploying to stagings server"
- sudo systemctl start python.service
- sudo systemctl status python.service
# environment:
# name: staging
# url : http://localhost/test
tags:
- ci
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