The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Fix all Python files to work with Python2 and Gunicorn/Heroku

master
Gergely Polonkai 6 years ago
parent cc17fc634f
commit a6a74fa56c
  1. 2
      Procfile
  2. 11
      app.py
  3. 3
      controllers/default_controller.py

@ -1 +1 @@
web: gunicorn api:app --log-file -
web: gunicorn app:app --log-file -

@ -2,10 +2,11 @@
import connexion
app = connexion.App(__name__, specification_dir='./swagger/')
app.add_api('swagger.yaml',
arguments={
'title': 'Rubber Duck Booking Tool'
})
if __name__ == '__main__':
app = connexion.App(__name__, specification_dir='./swagger/')
app.add_api('swagger.yaml',
arguments={
'title': 'Rubber Duck Booking Tool'
})
app.run(port=8080)

@ -1,3 +1,2 @@
def ducks_get() -> str:
def ducks_get():
return 'do some magic!'

Loading…
Cancel
Save