https://github.com/rollbar/rollbar-flask-example
Example using Rollbar with Flask
https://github.com/rollbar/rollbar-flask-example
Last synced: 8 months ago
JSON representation
Example using Rollbar with Flask
- Host: GitHub
- URL: https://github.com/rollbar/rollbar-flask-example
- Owner: rollbar
- Created: 2013-04-05T01:02:55.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T19:52:41.000Z (almost 3 years ago)
- Last Synced: 2025-09-30T00:40:43.390Z (9 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 21
- Watchers: 33
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rollbar-flask-example
A simple example [Flask](http://flask.pocoo.org/) app, showing how to use [Rollbar](https://rollbar.com) (the error tracking service) with Flask.
## How to run
This example requires Python 3 (or 2.6+), pip, and virtualenv.
```
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
python hello.py
```
That will start the server on [localhost:5000](http://localhost:5000) .
Or run with gunicorn:
```
gunicorn hello:app
```
which will start the server on [localhost:8000](http://localhost:8000) .
## Note on requirements
We tested with the listed versions in requirements.txt, but other versions of flask, blinker, and gunicorn are likely to work as well. Note that `blinker` is required. `gunicorn` is only required to run via gunicorn.