Commit bd5ae3da authored by Syed Bilal Raees's avatar Syed Bilal Raees

deletion of files and modification in yaml

parent c74eb9b8
...@@ -77,7 +77,7 @@ job1: ...@@ -77,7 +77,7 @@ job1:
- pip install Flask - pip install Flask
# - echo $PATH # - echo $PATH
- echo "deploying to development server" - echo "deploying to development server"
- sudo systemctl start prod.service - sudo systemctl start python.service
only: only:
- dev - dev
tags: tags:
......
if [$CI_COMMIT_REF_NAME == "master"]; then
echo "deploying to dev server"
sudo systemctl start python.service; fi
import flask
app = flask.Flask(__name__)
app.config["DEBUG"] = True
@app.route('/', methods=['GET'])
def home():
return "<h1>PRODUCTION ENVIRONMENT</h1><p>This site is a prototype API for greeting Nisum DevOps!</p>"
app.run(host='0.0.0.0', port=5003)
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