From d851a7e2a1a3239dd853ff88f918e1c52cf4b8f4 Mon Sep 17 00:00:00 2001 From: Ryan Park Date: Fri, 16 Jan 2015 10:34:14 -0800 Subject: [PATCH] Modifications to enable hosting by Runscope I removed the gunicorn requirement. At Runscope we need a custom version of gunicorn, and the requirement isn't strictly necessary for third parties to use this project. (They might want to host under a different WSGI server anyway.) Also updated the README to remove some Heroku references. --- README.rst | 11 +++-------- httpbin/templates/httpbin.1.html | 5 ----- requirements.txt | 1 - 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/README.rst b/README.rst index f0daa61..85067c0 100644 --- a/README.rst +++ b/README.rst @@ -7,8 +7,6 @@ flavors by `Runscope `__ |Build Status| -|Deploy to Heroku| - ENDPOINTS --------- @@ -157,7 +155,6 @@ $ curl https://httpbin.org/get?show\_env=1 "Accept-Encoding": "gzip,deflate,sdch", "X-Forwarded-Port": "443", "X-Forwarded-For": "109.60.101.240", - "X-Heroku-Dynos-In-Use": "1", "Host": "httpbin.org", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "User-Agent": "Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11", @@ -166,8 +163,6 @@ $ curl https://httpbin.org/get?show\_env=1 "Connection": "keep-alive", "X-Forwarded-Proto": "https", "Cookie": "_gauges_unique_day=1; _gauges_unique_month=1; _gauges_unique_year=1; _gauges_unique=1; _gauges_unique_hour=1", - "X-Heroku-Queue-Depth": "0", - "X-Heroku-Queue-Wait-Time": "11", "Content-Type": "" }, "args": { @@ -213,9 +208,9 @@ Originally created by `Kenneth Reitz `__. SEE ALSO -------- -https://hurl.it http://requestb.in http://python-requests.org +- https://hurl.it +- http://requestb.in +- http://python-requests.org .. |Build Status| image:: https://travis-ci.org/Runscope/httpbin.svg :target: https://travis-ci.org/Runscope/httpbin -.. |Deploy to Heroku| image:: https://camo.githubusercontent.com/c0824806f5221ebb7d25e559568582dd39dd1170/68747470733a2f2f7777772e6865726f6b7563646e2e636f6d2f6465706c6f792f627574746f6e2e706e67 - :target: https://heroku.com/deploy?template=https://github.com/Runscope/httpbin diff --git a/httpbin/templates/httpbin.1.html b/httpbin/templates/httpbin.1.html index 2a430a5..da55af1 100644 --- a/httpbin/templates/httpbin.1.html +++ b/httpbin/templates/httpbin.1.html @@ -2,8 +2,6 @@

httpbin(1): HTTP Request & Response Service

Freely hosted in HTTP, HTTPS & EU flavors by Runscope

-

Deploy to Heroku

-

ENDPOINTS

    @@ -105,7 +103,6 @@ Content-Length: 135 "Accept-Encoding": "gzip,deflate,sdch", "X-Forwarded-Port": "443", "X-Forwarded-For": "109.60.101.240", - "X-Heroku-Dynos-In-Use": "1", "Host": "httpbin.org", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "User-Agent": "Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11", @@ -114,8 +111,6 @@ Content-Length: 135 "Connection": "keep-alive", "X-Forwarded-Proto": "https", "Cookie": "_gauges_unique_day=1; _gauges_unique_month=1; _gauges_unique_year=1; _gauges_unique=1; _gauges_unique_hour=1", - "X-Heroku-Queue-Depth": "0", - "X-Heroku-Queue-Wait-Time": "11", "Content-Type": "" }, "args": { diff --git a/requirements.txt b/requirements.txt index af6bb50..a69953b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ decorator==3.4.0 Flask==0.10.1 gevent==1.0.1 greenlet==0.4.2 -gunicorn==18.0 itsdangerous==0.24 Jinja2==2.7.2 MarkupSafe==0.23