Commit 4ad9c6ac authored by Pablo Panero's avatar Pablo Panero
Browse files

Add wsgi and factory. Just API app, in order to be started by gunicorn

parent b8325454
# -*- coding: utf-8 -*-
import os
import sys
from import create_app_factory
from invenio_config import create_conf_loader
from . import config
env_prefix = 'INVENIO'
conf_loader = create_conf_loader(config=config, env_prefix=env_prefix)
instance_path = os.getenv(env_prefix + '_INSTANCE_PATH') or \
os.path.join(sys.prefix, 'var', 'instance')
"""Path to instance folder.
Defaults to ``<virtualenv>/var/instance/``. Can be overwritten using the
environment variable ``APP_INSTANCE_PATH``.
create_api = create_app_factory(
\ No newline at end of file
# -*- coding: utf-8 -*-
"""CERN Search WSGI app instantiation."""
from __future__ import absolute_import, division, print_function
from .factory import create_api
application = create_api()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment