Fix WSGI startup script

Currently mod_wsgi returns the following error:
Target WSGI script '/var/www/monasca-log-api/monasca_log_api'
does not contain WSGI application 'application'.

Also fix a type in README.

Change-Id: Ic70c3ddb8aaa076c09fc2434f6e890be24b599d5
This commit is contained in:
wachowskij 2017-06-29 14:33:36 +02:00
parent 0c9734a898
commit 0a82af18ab
2 changed files with 4 additions and 11 deletions

View File

@ -18,13 +18,6 @@ Use this file for deploying the API under mod_wsgi.
from paste import deploy
def main():
base_dir = '/etc/monasca/'
conf = '%slog-api-paste.ini' % base_dir
app = deploy.loadapp('config:%s' % conf)
return app
if __name__ == '__main__':
application = main()
base_dir = '/etc/monasca/'
conf = '%slog-api-paste.ini' % base_dir
application = deploy.loadapp('config:%s' % conf)

View File

@ -118,7 +118,7 @@ Tempest root dir.
7. Install the monasca-log-api in your venv, which will also register
the Monasca Log Api Tempest Plugin as, monasca_log_api_tempest.
cd into the monasa-log-api root directory. Making sure that the tempest
cd into the monasca-log-api root directory. Making sure that the tempest
virtual env is still active, run the following command.
```