Skip to content

Instantly share code, notes, and snippets.

@glenbot
glenbot / launch_requestbin.py
Created May 4, 2012 13:26
Bootstrap file to run Requestbin locally
import os
from requestbin.web import app
from requestbin.service import RequestBin
from requestbin.storage.memory import MemoryStorage
request_bin = RequestBin()
request_bin.do_start()
app.config['bind_address'] = ('0.0.0.0', int(os.environ.get("PORT", 5000)))