environment-settable port

This commit is contained in:
Anton Dyudin 2016-08-05 17:27:35 -07:00
parent 442ae5983e
commit 131a9993dc

3
urb
View File

@ -4,6 +4,7 @@
# - -h text # - -h text
# - output to clay # - output to clay
import os
import sys import sys
import logging import logging
import json import json
@ -11,7 +12,7 @@ import requests
import argparse import argparse
import base64 import base64
PORT = 12321 PORT = os.environ.get('LENS_PORT', 12321)
logging.basicConfig(level=logging.WARNING, logging.basicConfig(level=logging.WARNING,
format='%(levelname)s %(funcName)s %(lineno)s - %(message)s', format='%(levelname)s %(funcName)s %(lineno)s - %(message)s',