__author__ = 'aub3'
import os, sys, logging
sys.path.insert(1, os.path.join(os.path.abspath('.'), ''))
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
    datefmt='%m-%d %H:%M',
    filename='logs/server.log',
    filemode='a')

from appcode import app
from config import AWS
if __name__ == '__main__':
    if AWS:
        app.run(host="0.0.0.0", port=9000)
    else:
        app.run(port=9992, debug=True)
Beispiel #2
0
__author__ = 'aub3'
import platform, os
from appcode import app

if __name__ == '__main__':
    app.debug = True
    app.run(port=9500)
Beispiel #3
0
import os, sys, logging
sys.path.insert(1, os.path.join(os.path.abspath('.'), ''))
from appcode import app
if __name__ == '__main__':
    app.run(host="0.0.0.0", port=7004, debug=False)
Beispiel #4
0
__author__ = 'aub3'
import os,sys,logging
sys.path.insert(1, os.path.join(os.path.abspath('.'), ''))
logging.basicConfig(level=logging.INFO,
                    format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
                    datefmt='%m-%d %H:%M',
                    filename='logs/server.log',
                    filemode='a')

from appcode import app
if __name__ == '__main__':
    app.run(host="0.0.0.0",port=9000,debug=False)
Beispiel #5
0
__author__ = 'aub3'
import os,sys
sys.path.insert(1, os.path.join(os.path.abspath('.'), ''))
from appcode import app
from settings import AWS
if __name__ == '__main__':
    if AWS:
        app.run(host="0.0.0.0",port=9000)
    else:
        app.run(port=9992,debug=True)
Beispiel #6
0
__author__ = 'aub3'
"""
import boto.utils
region=boto.utils.get_instance_metadata()['local-hostname'].split('.')[1]
"""

import os,sys
sys.path.insert(1, os.path.join(os.path.abspath('.'), 'appcode/vendor'))
vendor_dir = os.path.join(os.path.dirname(__file__), 'appcode/vendor')
try:
    import google
    google.__path__.append(os.path.join(vendor_dir, 'google'))
except ImportError:
    pass
from appcode import app,config

if __name__ == '__main__':

    if config.EC2_MODE:
        app.run(host="0.0.0.0",port=9999)
    else:
        app.run(port=9999)
Beispiel #7
0
__author__ = 'aub3'
import platform,os
from appcode import app

if __name__ == '__main__':
    app.debug = True
    app.run(port=9500)