Hey guys,

so I have to create a complete sdlc cycle for school, even though i am not 
even a developer. So i have no idea what i am doing. So far, i got a simple 
python script including a self test on gitlab and can push that to a heroku 
app. Heroku however only shows an error if i want top oppen that app. My 
teacher says that is because i have nothing that answers the http request.

Python file:

import unittest# This program adds two numbersnum1 = 1.5num2 = 6.3# Add two 
numberssum = float(num1) + float(num2)# Display the sumprint('The sum of {0} 
and {1} is {2}'.format(num1, num2, sum))class Test(unittest.TestCase):    def 
test_sum(self):        self.assertEqual(sum, 7.8)        
self.assertIs(type(sum), float)unittest.main()

-------------------------


yml:

# This file is a template, and might need editing before it works on your 
project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:latest
 


variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

# Pip's cache doesn't store the python package
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
  paths:
    - .cache/pip
    - venv/

before_script:
  - python -V               # Print out python version for debugging
  - pip install virtualenv
  - virtualenv venv
  - source venv/bin/activate

test:
  script:
  - python Stuff.py
  - apt-get update -qy
  - apt-get install -y ruby-dev
  - gem install dpl
  - git add Stuff.py
  - dpl --provider=heroku --app=testbs14 --api-key=$HEROKU_PRODUCTION_API_KEY


What is a simple way to make heroku show something when i now click on "Open 
App" ?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to