Lothiraldan / saltpad

A gui and cli to manage saltstack deployments
Other
660 stars 147 forks source link

Add documentation about how to run SaltPad via mod_wsgi #81

Open xenophonf opened 9 years ago

xenophonf commented 9 years ago

In case anyone else is wondering, I installed SaltPad under /opt/saltpad and then put the following in saltpad.wsgi:

import sys
sys.path.insert(0, '/opt/saltpad')

from saltpad.app import app as application

This follows the recommended WSGI file contents as described in the Flask documentation. Note that sys.path must be mutated because SaltPad does not currently get installed under Python's site-packages (and so the SaltPad installation instructions say to run it from the source directory).

xenophonf commented 9 years ago

My Salt formula for SaltPad can be found at https://github.com/irtnog/salt-states/tree/development/saltpad.

TheBigBear commented 8 years ago

@xenophonf where does this 'saltpad.wsgi' file go? I have 'mod_wsgi' installed for apache 2.2.16 on centos 6.x, is that going to work?

shpsec-david commented 8 years ago

@xenophonf thank you for this!

@TheBigBear the saltpad.wsgi file goes in the saltpad root directory.

xenophonf commented 8 years ago

You're welcome!