Move service to common
AND 1. Fix some typo 2. Remove app.wsgi which is for deployment Change-Id: I76fac91be4061cbe2f52c4ba6722f6dbcb0487c3
This commit is contained in:
parent
aceed3e4f1
commit
540ca0f5ac
|
@ -16,8 +16,8 @@ import webob.exc
|
|||
from werkzeug import serving
|
||||
|
||||
from evoque.api import hooks
|
||||
from evoque.common import service
|
||||
from evoque import exceptions
|
||||
from evoque import service
|
||||
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
#
|
||||
# Copyright 2014 eNovance
|
||||
#
|
||||
# Authors: Mehdi Abaakouk <mehdi.abaakouk@enovance.com>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
"""Use this file for deploying the API under mod_wsgi.
|
||||
|
||||
See http://pecan.readthedocs.org/en/latest/deployment.html for details.
|
||||
"""
|
||||
from oslo_config import cfg
|
||||
|
||||
from evoque import service
|
||||
from evoque.api import app
|
||||
|
||||
# Initialize the oslo configuration library and logging
|
||||
conf = service.prepare_service()
|
||||
# The pecan debugger cannot be used in wsgi mode
|
||||
conf.set_default('pecan_debug', False, group='api')
|
||||
application = app.setup_app(cfg=conf)
|
|
@ -21,8 +21,8 @@ from oslo_service import service
|
|||
|
||||
from evoque.common.i18n import _LI
|
||||
from evoque.common import rpc_service
|
||||
from evoque.common import service as evoque_service
|
||||
from evoque.engine.ticket import endpoint as ticket_endpoint
|
||||
from evoque import service as evoque_service
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""Common RPC service and API tools for Magnum."""
|
||||
"""Common RPC service and API tools for Evoque."""
|
||||
|
||||
import eventlet
|
||||
from oslo_config import cfg
|
||||
|
|
|
@ -18,8 +18,6 @@ from oslo_log import log as logging
|
|||
|
||||
from evoque import opts
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def prepare_service():
|
||||
|
Loading…
Reference in New Issue