For now it just contains a management command, but I ensured it is registered properly through the Pillar extension system.
14 lines
294 B
Python
Executable File
14 lines
294 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
from pillar import PillarServer
|
|
from bcloud.attract.extension import AttractExtension
|
|
|
|
attract = AttractExtension()
|
|
|
|
app = PillarServer('.')
|
|
app.load_extension(attract, '/attract')
|
|
app.process_extensions()
|
|
|
|
if __name__ == '__main__':
|
|
app.run('::0', 5001, debug=True)
|