Example #1
0
import sys

if sys.platform == "darwin":
    sys.path.insert(0, "/Users/User/amon")
else:
    sys.path.insert(0, "/home/martin/amon")


from amon.web.server import application
import tornado.ioloop
from amon.core import settings
from tornado import autoreload

if __name__ == "__main__":
    application.listen(int(settings.WEB_APP["port"]), address="127.0.0.1")
    ioloop = tornado.ioloop.IOLoop().instance()
    autoreload.start(ioloop)
    ioloop.start()
Example #2
0
import sys

if sys.platform == 'darwin':
    sys.path.insert(0, '/Users/User/amon')
else:
    sys.path.insert(0, '/home/martin/amon')

from amon.web.server import application
import tornado.ioloop
from amon.core import settings
from tornado import autoreload

if __name__ == "__main__":
    application.listen(int(settings.WEB_APP['port']))
    ioloop = tornado.ioloop.IOLoop().instance()
    autoreload.start(ioloop)
    ioloop.start()
Example #3
0
import sys

if sys.platform == 'darwin':
    sys.path.insert(0, '/Users/User/amon')
else:
    sys.path.insert(0, '/home/martin/amon')

from amon.web.server import application
import tornado.ioloop
from amon.core import settings
from tornado import autoreload

if __name__ == "__main__":
    application.listen(int(settings.WEB_APP['port']), address='127.0.0.1')
    ioloop = tornado.ioloop.IOLoop().instance()
    autoreload.start(ioloop)
    ioloop.start()
Example #4
0
import sys
sys.path.insert(0, '/home/martin/amon')


from amon.web.server import application
import tornado.ioloop
from amon.core import settings

if __name__ == "__main__":
	application.listen(int(settings.WEB_APP['port']))
	tornado.ioloop.IOLoop.instance().start()