Skip to content

Commit

Permalink
Adds pulp-content
Browse files Browse the repository at this point in the history
The docs say a script called pulp-content is there to help run the
aiohttp server locally. This allows the content app to be run in a
simple way, similar to runserver from Django.

https://pulp.plan.io/issues/4218
closes #4218
  • Loading branch information
Brian Bouterse committed Jan 21, 2019
1 parent 2debcbf commit 9c36548
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/pulp-content
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env python

import aiohttp

from pulpcore.content import server


aiohttp.web.run_app(server())
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@
'pulp-manager=pulpcore.app.entry_points:pulp_manager_entry_point'
]
},
scripts=['bin/pulp-content'],
)

0 comments on commit 9c36548

Please sign in to comment.