Merge "Debug with barbican-api"

This commit is contained in:
Jenkins 2017-04-05 15:12:18 +00:00 committed by Gerrit Code Review
commit e4ff8fe811

View File

@ -3,15 +3,15 @@
from paste import deploy from paste import deploy
from paste import httpserver from paste import httpserver
def run(): def run():
prop_dir = 'etc/barbican' prop_dir = 'etc/barbican'
application = deploy.loadapp( application = deploy.loadapp(
'config:{prop_dir}/barbican-api-paste.ini'.format(prop_dir=prop_dir), 'config:{prop_dir}/barbican-api-paste.ini'.
name='main', format(prop_dir=prop_dir), name='main', relative_to='/')
relative_to='.')
httpserver.serve(application, host='127.0.0.1', port='9311') httpserver.serve(application, host='0.0.0.0', port='9311')
if __name__ == '__main__': if __name__ == '__main__':
run() run()