Exemple #1
0
def runadmin():
    """ Start the backend server server"""
    # with app2.app_context():
    from kx.views.admin import control
    # Initialize the app blueprints
    initialize_blueprints(app, control)

    port = int(os.environ.get('PORT', 5560))
    app.run(host='0.0.0.0', port=port)
Exemple #2
0
def runserver():
    """ Start the server"""
    # with app2.app_context():
    from kx.views.public import www
    from kx import api, principal
    from kx.resources import resource

    # Initialize the app blueprints
    initialize_blueprints(app, www)
    initialize_api(app, api)

    port = int(os.environ.get('PORT', 5550))
    app.run(host='0.0.0.0', port=port)
Exemple #3
0
def runserver():
	""" Start the server"""

	from fitted.views.frontend import main
	
	from fitted.resources import events
	from fitted.services import authentication, products
	from fitted import api
	from fitted.subscribers import events

	# Initialize the api resources
	initialize_blueprints(app, main)
	initialize_api(app, api)


	port = int(os.environ.get('PORT', 5000))
	app.run(host='0.0.0.0', port=port)
Exemple #4
0
def runadmin():
	""" Start the server"""

	from fitted.views.admin import control
	
	from fitted.resources import assets, merchant
	from fitted.resources.admin import auth, assets
	from fitted import api

	# Initialize the api resources
	initialize_api(app, api)

	# # Import all subscriptions to initialize them
	from fitted.services import search
	from fitted.subscribers import registration, inventory, search, messages
	
	# Initialize the app blueprints
	initialize_blueprints(app, control)

	port = int(os.environ.get('PORT', 5001))
	app.run(host='0.0.0.0', port=port)
Exemple #5
0
import os
import uwsgi

from factories import create_app, initialize_api, initialize_blueprints

app = create_app('sme', 'config.AdminProdConfig')

with app.app_context():
    from kx.views.admin import control

    # Initialize the app blueprints
    initialize_blueprints(app, control)

if __name__ == "__main__":
    port = int(os.environ.get('PORT', 5000))
    app.run(host='0.0.0.0', port=port)
Exemple #6
0
import os
import uwsgi
import gevent.monkey
import socket

#gevent.monkey.patch_all()

from factories import create_app, initialize_api, initialize_blueprints

app = create_app('sme', 'config.SiteProdConfig')

with app.app_context():
    from kx.views.public import www
    from kx import api, principal
    from kx.resources import resource

    # Initialize the app blueprints
    initialize_blueprints(app, www)
    initialize_api(app, api)

if __name__ == "__main__":

    port = int(os.environ.get('PORT', 5000))
    app.run(host='0.0.0.0', port=port)