a740183e08
This patch set will fix a bug related to debuging Barbican-api. Change-Id: I4513148e36c815679fb7240c215940aa4ef3fd3f Closes-Bug: #1670566
18 lines
374 B
Python
Executable File
18 lines
374 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
from paste import deploy
|
|
from paste import httpserver
|
|
|
|
|
|
def run():
|
|
prop_dir = 'etc/barbican'
|
|
|
|
application = deploy.loadapp(
|
|
'config:{prop_dir}/barbican-api-paste.ini'.
|
|
format(prop_dir=prop_dir), name='main', relative_to='/')
|
|
|
|
httpserver.serve(application, host='0.0.0.0', port='9311')
|
|
|
|
if __name__ == '__main__':
|
|
run()
|