def main(): logging.config.fileConfig('cfg/logging.cfg') cl_args = sys.argv log.info("args: %s" % cl_args) if 'red' in cl_args: analize_project() if 'app' in cl_args: port = int(os.environ.get('PORT', 5000)) app.run(host='0.0.0.0', port=port, debug=True)
def get_redmine_content(): from app.redmine.get_content import analize_project analize_project() return 'success:200'