Exemple #1
0
# -*- coding: utf-8 -*-

from optparse import OptionParser

from monitor import app

optparser = OptionParser()
optparser.add_option('-p',
                     '--port',
                     dest='port',
                     help='Server Http Port Number',
                     default=9001,
                     type='int')
(options, args) = optparser.parse_args()
app = app
app.run(host='0.0.0.0', port=options.port, debug=True)
Exemple #2
0
from monitor import app

if __name__ == '__main__':
   app.run()
Exemple #3
0
from monitor import app as application

if __name__ == '__main__':
    application.run()
Exemple #4
0
import os

if __name__ == '__main__':
    os.environ['OPENSHIFT_MONGODB_DB_URL'] = 'mongodb://127.0.0.1:27017'
    from monitor import app
    app.run(debug=True, use_reloader=False, threaded=True)
Exemple #5
0
import ctypes
import sys
import os

if sys.platform == "win32":
    if not ctypes.windll.shell32.IsUserAnAdmin():
        raise Exception("Monitor must be run as an admin")

else:
    if os.geteuid() != 0:
        raise Exception("Monitor must be run as root")


from monitor import app
app.run(debug=True, host="0.0.0.0")
from monitor import app

if __name__ == "__main__":
    app.run()
Exemple #7
0
from monitor import app
if __name__ == "__main__":
    app.debug = True
    app.run(host='119.29.147.14', port=6000)
Exemple #8
0
from monitor import app

if __name__ == "__main__":
    app.run(debug=True)
# -*- coding: utf-8 -*-

'''
Created on 2015-09-09

@author: zeng
'''



from monitor import app


if __name__ == '__main__':
    
    
    app.run(host = '0.0.0.0', debug=True)
from monitor import app

if __name__ == '__main__':
    app.run(host='0.0.0.0')  #app.run(debug=True)