Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Dockerfile
Jenkinsfile
README.md
requirements.txt
sanic_rookout.py

README.md

Quickstart for debugging Sanic

A sample application for debugging Python Sanic apps using Rookout.

Before following this guide we recommend reading the basic Python + Rookout guide.

Running Sanic Server with Rookout

  1. Clone and install dependencies:
   git clone https://github.com/Rookout/deployment-examples.git
   cd deployment-examples/python-sonic
   pip3 install -r requirements.txt
  1. Export organization token:
	export ROOKOUT_TOKEN=<Your Rookout Token>
  1. Run the sanic server:
    #start the server (default: http://localhost:5000)
    python3 sanic_rookout.py
  1. Have fun debugging: Go to https://app.rookout.com and start debugging :)

Rookout Integration explained

  1. When running number of workers that handle requests in parallel, we need to import rook for each process.
    async def load_rookout():
    	from rook import auto_start
You can’t perform that action at this time.