Skip to content

Instantly share code, notes, and snippets.

@ldoguin
Last active July 22, 2020 12:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldoguin/5e74b289c22935c009382a5549f4ce4e to your computer and use it in GitHub Desktop.
Save ldoguin/5e74b289c22935c009382a5549f4ce4e to your computer and use it in GitHub Desktop.
Deploy request bin
git clone https://github.com/lornajane/requestbin

cd requestbin

clever create --type python requestbin

clever addon create redis-addon --plan s redis-requestbin

clever service link-addon redis-requestbin

clever env set CC_PYTHON_BACKEND gunicorn

clever env set CC_PYTHON_MODULE requestbin:app

clever env set CC_PYTHON_VERSION 3

clever env set REALM prod

clever deploy

clever open
@lornajane
Copy link

I also set an environment variable REDIS_DB=0 which seemed to help. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment