Run testproj in a Heroku demo app (#38)

* Add Heroku configuration
* Add links in API description
* Read database connection string from DATABASE_URL environment variable
* Restructure settings files for production
* Run server using gunicorn and servce static files with whitenoise
* Install drf-yasg from source instead of pypi in testproj
* Add readme links to demo app
This commit is contained in:
Cristi Vîjdea
2018-01-10 10:18:22 +01:00
committed by GitHub
parent 6b38a3b6c1
commit c4379dc6a7
26 changed files with 188 additions and 50 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
swagger: '2.0'
info:
title: Snippets API
description: Test description
description: "This is a demo project for the [drf-yasg](https://github.com/axnsan12/drf-yasg)\
\ Django Rest Framework library.\n\nThe `swagger-ui` view can be found [here](/cached/swagger).\
\ \nThe `ReDoc` view can be found [here](/cached/redoc). \nThe swagger YAML\
\ document can be found [here](/cached/swagger.yaml). \n\nYou can log in using\
\ the pre-existing `admin` user with password `passwordadmin`."
termsOfService: https://www.google.com/policies/terms/
contact:
email: contact@snippets.local