Add WSGI file

Tested on Apache + mod_wsgi in docker
https://registry.hub.docker.com/u/grahamdumpleton/mod-wsgi-docker/

Change-Id: Ia7676f9391b0f5cff456493814aa10390c90e7b8
This commit is contained in:
sslypushenko 2015-04-29 17:58:26 +03:00
parent 11169dffe6
commit 9e9de4bb0a
3 changed files with 21 additions and 1 deletions

View File

@ -61,7 +61,7 @@ Refstack Quickstart
- At the minimum the value of the `connection` field in the `[database]`
section should be updated. For example, if the backend database is MySQL
then update: `#connection = <None>` to
`connection = mysql://refstack:<your password>@x.x.x.x/refstack`
`connection = mysql+pymysql://refstack:<your password>@x.x.x.x/refstack`
####Database sync

19
refstack/api/app.wsgi Normal file
View File

@ -0,0 +1,19 @@
# Copyright (c) 2015 Mirantis, Inc.
# All Rights Reserved.
#
# 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.
from refstack.api import app
from refstack.api import config as api_config
application = app.setup_app(api_config)

View File

@ -10,3 +10,4 @@ pyOpenSSL==0.13
pycrypto>=2.6
requests==1.2.3
jsonschema>=2.0.0,<3.0.0
PyMySQL>=0.6.2,!=0.6.4