Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / development.ini @ 35cea70e

History | View | Annotate | Download (4.33 KB)

1
#
2
# vigiboard - Pylons development environment configuration
3
#
4
# The %(here)s variable will be replaced with the parent directory of this file
5
#
6
# This file is for deployment specific config options -- other configuration
7
# that is always required for the app is done in the config directory, 
8
# and generally should not be modified by end users. 
9

    
10
[DEFAULT]
11
debug = true
12
# Uncomment and replace with the address which should receive any error reports
13
#email_to = you@yourdomain.com
14
smtp_server = localhost
15
error_email_from = paste@localhost
16

    
17
[server:main]
18
use = egg:Paste#http
19
host = 127.0.0.1 
20
port = 8080
21

    
22
[app:main]
23
use = egg:vigiboard
24
full_stack = true
25
#lang = zh_tw 
26
cache_dir = %(here)s/data
27
beaker.session.key = vigiboard
28
beaker.session.secret = somesecret
29

    
30
# If you'd like to fine-tune the individual locations of the cache data dirs
31
# for the Cache data, or the Session saves, un-comment the desired settings
32
# here:
33
#beaker.cache.data_dir = %(here)s/data/cache
34
#beaker.session.data_dir = %(here)s/data/sessions
35

    
36
# DB - sqlite fails, not postgresql ready, use mysql for now
37
#sqlalchemy.url = sqlite:///%(here)s/devdata.db
38
#sqlalchemy.url=mysql://vigiboard:penmdor@localhost/vigiboard
39
#sqlalchemy.url=postgres://vigiboard@localhost/vigiboard
40
sqlalchemy.url=mysql://root:tandreja@localhost:3306/vigiboard
41
#echo shouldn't be used together with the logging module.
42
sqlalchemy.echo = false
43
sqlalchemy.echo_pool = false
44
sqlalchemy.pool_recycle = 3600
45

    
46
# if you are using Mako and want to be able to reload
47
# the mako template from disk during the development phase
48
# you should say 'true' here
49
# This option is only used for mako templating engine
50
# WARNING: if you want to deploy your application using a zipped egg
51
# (ie: if your application's setup.py defines zip-safe=True, then you
52
# MUST put "false" for the production environment because there will
53
# be no disk and real files to compare time with.
54
# On the contrary if your application defines zip-safe=False and is
55
# deployed in an unzipped manner, then you can leave this option to true
56
templating.mako.reloadfromdisk = true
57

    
58
# the compiled template dir is a directory that must be readable by your
59
# webserver. It will be used to store the resulting templates once compiled
60
# by the TemplateLookup system.
61
# During development you generally don't need this option since paste's HTTP
62
# server will have access to you development directories, but in production
63
# you'll most certainly want to have apache or nginx to write in a directory
64
# that does not contain any source code in any form for obvious security reasons.
65
#
66
#templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access
67

    
68
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
69
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
70
# execute malicious code after an exception is raised.
71
#set debug = false
72

    
73
# Logging configuration
74
# Add additional loggers, handlers, formatters here
75
# Uses python's logging config file format
76
# http://docs.python.org/lib/logging-config-fileformat.html
77

    
78
[loggers]
79
keys = root, vigiboard, sqlalchemy, auth
80

    
81
[handlers]
82
keys = console,sql_log,root_log,vigiboard_log,auth_log
83

    
84
[formatters]
85
keys = generic
86

    
87
# If you create additional loggers, add them as a key to [loggers]
88
[logger_root]
89
level = DEBUG
90
handlers = root_log
91

    
92
[logger_vigiboard]
93
level = DEBUG
94
handlers = vigiboard_log
95
qualname = vigiboard
96

    
97
[logger_sqlalchemy]
98
level = DEBUG
99
handlers = sql_log
100
qualname = sqlalchemy.engine
101

    
102
# A logger for authentication, identification and authorization -- this is
103
# repoze.who and repoze.what:
104
[logger_auth]
105
level = DEBUG
106
handlers = auth_log
107
qualname = auth
108

    
109
# If you create additional handlers, add them as a key to [handlers]
110
[handler_console]
111
class = StreamHandler
112
args = (sys.stderr,)
113
level = NOTSET
114
formatter = generic
115

    
116
[handler_sql_log]
117
class = FileHandler
118
args = ('log/sql.log','a')
119
level = DEBUG
120
formatter = generic
121

    
122
[handler_root_log]
123
class = FileHandler
124
args = ('log/root.log','a')
125
level = DEBUG
126
formatter = generic
127

    
128
[handler_vigiboard_log]
129
class = FileHandler
130
args = ('log/vigiboard.log','a')
131
level = DEBUG
132
formatter = generic
133

    
134
[handler_auth_log]
135
class = FileHandler
136
args = ('log/auth.log','a')
137
level = DEBUG
138
formatter = generic
139

    
140
# If you create additional formatters, add them as a key to [formatters]
141
[formatter_generic]
142
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
143
datefmt = %H:%M:%S