File: graphite

package info (click to toggle)
graphite-api 1.1.3-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 752 kB
  • sloc: python: 7,757; sh: 215; makefile: 150
file content (16 lines) | stat: -rwxr-xr-x 367 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/env python
import os

os.environ.setdefault('DEBUG', '1')

import graphite_api

graphite_api.DEBUG = bool(int(os.environ['DEBUG']))

from graphite_api.app import app


if __name__ == '__main__':
    port = int(os.environ.get('PORT', 8888))
    host = os.environ.get('BIND_ADDRESS', '127.0.0.1')
    app.run(debug=graphite_api.DEBUG, port=port, host=host)