mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
1712f26470
Using env enables the scripts to run in virtualenv as well as in a differently named or bare environment. Signed-off-by: Felix Kaechele <felix@kaechele.ca>
12 lines
226 B
Python
Executable File
12 lines
226 B
Python
Executable File
#!/usr/bin/env python
|
|
from app import app
|
|
from config import PORT
|
|
|
|
try:
|
|
from config import BIND_ADDRESS
|
|
except:
|
|
BIND_ADDRESS = '127.0.0.1'
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug = True, host=BIND_ADDRESS, port=PORT)
|