Create Barbican python scripts for development.

This script does not require uwsgi and instead uses paste deploy to run Barbican.

Change-Id: I4a0148ad081fb8e238528af4eb54da8f0dfb037f
This commit is contained in:
werner mendizabal 2015-04-06 14:13:05 -05:00
parent 80421b7ddc
commit fe365db0d6
1 changed files with 17 additions and 0 deletions

17
bin/barbican-api Executable file
View File

@ -0,0 +1,17 @@
#!/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='127.0.0.1', port='9311')
if __name__ == '__main__':
run()