Exemple #1
0
from project import application

if __name__ == '__main__':
    application.run()
Exemple #2
0
# -*- coding: utf-8 -*-

import os, sys
import logging

##logging.basicConfig(level=logging.DEBUG, format='%(levelname)s - - %(asctime)s %(message)s', datefmt='[%d/%b/%Y %H:%M:%S]')
logging.basicConfig(level=logging.INFO,
                    format='%(levelname)s - - %(asctime)s %(message)s',
                    datefmt='[%d/%b/%Y %H:%M:%S]')

sys.path.append('{{ WEB }}')
sys.path.append('{{ APPS }}')

os.environ.setdefault("FLASK_SETTINGS_MODULE", "settings")

from project import application

if __name__ == "__main__":
    application.run(debug=True, host='0.0.0.0', port=5555)
from project import application

if __name__ == "__main__":
    application.run(debug=True)
Exemple #4
0
# -*- coding: utf-8 -*-

import os, sys
import logging

logging.basicConfig(level=logging.DEBUG,
                    format='%(levelname)s - - %(asctime)s %(message)s',
                    datefmt='[%d/%b/%Y %H:%M:%S]')
##logging.basicConfig(level=logging.INFO, format='%(levelname)s - - %(asctime)s %(message)s', datefmt='[%d/%b/%Y %H:%M:%S]')

sys.path.append('/projects/mygw/web')
sys.path.append('/projects/mygw/web/apps')

os.environ.setdefault("FLASK_SETTINGS_MODULE", "settings")

from project import application

if __name__ == "__main__":
    application.run(debug=True, host='0.0.0.0', port=7999)
Exemple #5
0
# -*- coding: utf-8 -*-

import os, sys
import logging

##logging.basicConfig(level=logging.DEBUG, format='%(levelname)s - - %(asctime)s %(message)s', datefmt='[%d/%b/%Y %H:%M:%S]')
logging.basicConfig(level=logging.INFO, format='%(levelname)s - - %(asctime)s %(message)s', datefmt='[%d/%b/%Y %H:%M:%S]')

sys.path.append('/projects/osteola-flask')
sys.path.append('/projects/osteola-flask/apps')

os.environ.setdefault("FLASK_SETTINGS_MODULE", "settings")

from project import application

if __name__ == "__main__":
    application.run(debug=True, host='0.0.0.0', port=5555)
Exemple #6
0
from project import application

if __name__ == '__main__':
    application.run(debug=True, use_reloader=False)
Exemple #7
0
# -*- coding: utf-8 -*-

import os, sys
import logging

logging.basicConfig(level=logging.DEBUG,
                    format='%(levelname)s - - %(asctime)s %(message)s',
                    datefmt='[%d/%b/%Y %H:%M:%S]')
##logging.basicConfig(level=logging.INFO, format='%(levelname)s - - %(asctime)s %(message)s', datefmt='[%d/%b/%Y %H:%M:%S]')

sys.path.append('@GLOBALS@')
sys.path.append('@WEB@')
sys.path.append('@APPS@')

os.environ.setdefault("FLASK_SETTINGS_MODULE", "settings")

from project import application

if __name__ == "__main__":
    host = "0.0.0.0"
    port = 7999
    print "\nStarting on: %s:%d" % (host, port)
    application.run(debug=True, host=host, port=port)
Exemple #8
0
from flask.cli import FlaskGroup
from project import application

cli = FlaskGroup(application)

if __name__ == "__main__":
    # cli()
    application.run(host='0.0.0.0', port=5000)
Exemple #9
0
from project import application

if __name__ == '__main__':
    application.run(host='0.0.0.0', port=5000, debug=True)