Small config rework. Add .gitignore
This commit is contained in:
@@ -1,25 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from aore import phias, config
|
||||
from bottle import run
|
||||
from aore import phias
|
||||
|
||||
# Config section
|
||||
# config.sphinx_conf.listen = "192.168.0.37:9312"
|
||||
# config.sphinx_conf.var_dir = "C:\\Sphinx"
|
||||
#
|
||||
# config.db_conf.database = "pyfias"
|
||||
# config.db_conf.host = "192.168.0.37"
|
||||
# config.db_conf.port = 5432
|
||||
# config.db_conf.user = "postgres"
|
||||
# config.db_conf.password = "intercon"
|
||||
#
|
||||
# config.unrar_config.path = "C:\\Program Files (x86)\\WinRAR\\unrar.exe"
|
||||
# config.folders.temp = "E:\\!TEMP"
|
||||
#
|
||||
# config.basic.logging = True
|
||||
# Load config
|
||||
try:
|
||||
from config import *
|
||||
except ImportError:
|
||||
assert "No config"
|
||||
|
||||
# Define main app
|
||||
application = phias.App('test-config-fname')
|
||||
application = phias.App()
|
||||
|
||||
# Run bottle WSGI server if no external
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user