Example #1
0
from dynaconf import settings

from src.app import app
from src.core import Logger

log = Logger()


if __name__ == "__main__":
    log.info("Created app instance. Initiating run . . .")
    app.run(
        host=settings.API.SERVER.url, port=settings.API.SERVER.port, debug=settings.DEBUG,
    )
Example #2
0
from src.app import app
from src.config import PORT
import users

app.run("0.0.0.0", PORT, debug=True)
Example #3
0
def run(debug, threaded, host, port):
    HOST, PORT = host, port
    print "running on %s:%d" % (HOST, PORT)
    app.run(host=HOST, port=PORT, debug=app.config['DEBUG'], threaded=threaded)
Example #4
0
from src.app import app

app.run(debug=app.config['DEBUG'], port=4990)

Example #5
0
from src.app import app

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=8000)
Example #6
0
def run_application():
    app.run(debug=True, port=3000)
Example #7
0
from src.app import app

if __name__ == '__main__':
    app.run(port=4995, debug=True)
Example #8
0
from datetime import time, datetime
import json
from flask import Flask
from flask_graphql import GraphQLView
from graphene import Schema
import src.data
from src.app import app
from src.schema import Query

schema = Schema(query=Query)

app.add_url_rule("/",
                 view_func=GraphQLView.as_view("graphql",
                                               schema=schema,
                                               graphiql=True))

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=5000)
Example #9
0
from src.app import app
from manageconf import Config, get_config  # noqa F401

DEBUG = get_config("DEBUG")

if __name__ == "__main__":
    app.run(debug=DEBUG, host="0.0.0.0", port=3002)
Example #10
0
from flask import render_template, redirect, request, url_for

from src.app import app
from src.models import db, Category, Post
from src.views import category, post, authentication
from src.seed_data import seed_data


# index
@app.route('/')
def homepage():
    seed_data()
    return 'Hello, this is Royhan Anwar'


if __name__ == '__main__':
    app.run(debug=True)
Example #11
0
from src.app import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8080, debug=False)
Example #12
0
from src.app import app

if __name__=='__main__':
	app.run(debug=True, port=4995)
from src.app import app as application

if __name__ == '__main__':
    application.run()
Example #14
0
#!/usr/bin/env python2

import sys
from src.app import app

if __name__ == '__main__':
    host = sys.argv[1] if len(sys.argv) > 1 else '127.0.0.1'
    app.run(debug=True, host=host)
Example #15
0
from src.app import app

app.run(debug=app.config['DEBUG'], port=5000)
# the reason why you didn't need to import a config file is that there is a config attribute to a Flask object
Example #16
0
from src.app import app

__author__ = "abhishekmadhu"

app.run(debug=app.config['DEBUG'])
Example #17
0
from src.app import app
import os

if __name__ == '__main__':
    app.run(port=os.environ.get("PORT"), debug=True)
Example #18
0
from src.app import app

app.run(debug=app.config['DEBUG'], port=17080)
Example #19
0
File: run.py Project: jslvtr/FChat
from src.app import app

app.run(debug=app.config['DEBUG'], port=4660)
Example #20
0
#For executing from ubuntu
import sys
sys.path.insert(0, '/var/www/html/body-by-science/')

from src.app import app

if __name__ == '__main__':
    app.run(debug=True) # option to specify the port
Example #21
0
from src.app import app
import config

if __name__ == '__main__':
    app.secret_key = config.CSRF_SESSION_KEY
    app.config['SESSION_TYPE'] = 'filesystem'
    app.config['MAX_CONTENT_LENGTH'] = 50 * 1024 * 1024
    app.run(host=config.HOST, port=config.PORT, debug=config.DEBUG)
"""Application entry point."""
from src.app import app

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=5000, debug=True)
Example #23
0
#!/bin/env python3

if __name__ == "__main__":
    from src.app import app

    app.run("0.0.0.0", debug=True)
Example #24
0
import os

from src.app import app
from config.config import *
if __name__ == '__main__':
    if os.environ['ENV'] == "Development":
        app.run(host=DevelopmentConfig.HOST, port=DevelopmentConfig.port)
    elif os.environ['ENV'] == "Production":
        app.run(host=ProductionConfig.HOST, port=ProductionConfig.port)
    else:
        app.run(host=TestingConfig.HOST, port=TestingConfig.port)
Example #25
0
#!/usr/bin/env python3

import os
from src.app import app

if __name__ == "__main__":
    port = int(os.environ.get("PORT", 5000))
    app.run(host="0.0.0.0", port=port, debug=True)
Example #26
0
#!/usr/bin/env python

from src.app import app

if __name__ == "__main__":
    app.run(port=8080, debug=True)
Example #27
0
# Run the app
from src.app import app
app.run(host='0.0.0.0', debug=True)
Example #28
0
from src.app import app

if __name__ == '__main__':
    app.run(port=8080, host=('0.0.0.0'))
Example #29
0
# Internal
from src.app import app

if __name__ == '__main__':
    app.run()
Example #30
0
from src.app import app

<<<<<<< HEAD
app.run('localhost', 4990)
=======
app.run('localhost', 5000)
>>>>>>> 7abcbd20dcb4a0d11d3924b82e1c9fcce1a2734e
Example #31
0
from src.app import app
app.run(host='0.0.0.0',port=3001)
Example #32
0
__author__ = 'neil'

from src.app import app

app.run(debug=app.config['DEBUG'], port=4990)  # instead of __main__ in app

Example #33
0
from src.app import app


if __name__ == "__main__":
    app.run(host="0.0.0.0")
Example #34
0
import os

from src.app import app

if __name__ == '__main__':
    app.run(debug=True, port=int(os.environ.get('PORT', 5000)))
Example #35
0
from src.app import app

if __name__ == '__main__':
    app.run(debug=True,
            use_debugger=False,
            use_reloader=False,
            passthrough_errors=True)
Example #36
0
from src.app import app

app.run(debug=app.config['DEBUG'], port=5556)
Example #37
0
from src.app import app

app.run(debug=app.config['DEBUG'], port=4991)
Example #38
0
from src.app import app
from src.common.database import Database

Database.initialize()

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True, port=4904)
Example #39
0
from src.app import app, init_app

if __name__ == "__main__":
    init_app(app)
    app.run(debug=True)
Example #40
0
# coding: utf-8
"""
created by artemkorkhov at 2016/03/11
"""

from src.app import app


if __name__ == "__main__":
    app.run()