Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / production.ini @ 02503aef

History | View | Annotate | Download (4.41 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 = false
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

    
25
# Requis par Vigiboard
26
appname = vigiboard
27

    
28
full_stack = true
29
#lang = fr
30
cache_dir = %(here)s/data
31
beaker.session.key = vigiboard
32
beaker.session.secret = somesecret
33

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

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

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

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

    
73
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
74
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
75
# execute malicious code after an exception is raised.
76
set debug = false
77

    
78
# Logging configuration
79
# Add additional loggers, handlers, formatters here
80
# Uses python's logging config file format
81
# http://docs.python.org/lib/logging-config-fileformat.html
82

    
83
[loggers]
84
keys = root, vigiboard, sqlalchemy, auth
85

    
86
[handlers]
87
keys = console,sql_log,root_log,vigiboard_log,auth_log
88

    
89
[formatters]
90
keys = generic
91

    
92
# If you create additional loggers, add them as a key to [loggers]
93
[logger_root]
94
level = DEBUG
95
handlers = root_log
96

    
97
[logger_vigiboard]
98
level = DEBUG
99
handlers = vigiboard_log
100
qualname = vigiboard
101

    
102
[logger_sqlalchemy]
103
level = DEBUG
104
handlers = sql_log
105
qualname = sqlalchemy.engine
106

    
107
# A logger for authentication, identification and authorization -- this is
108
# repoze.who and repoze.what:
109
[logger_auth]
110
level = DEBUG
111
handlers = auth_log
112
qualname = auth
113

    
114
# If you create additional handlers, add them as a key to [handlers]
115
[handler_console]
116
class = StreamHandler
117
args = (sys.stderr,)
118
level = NOTSET
119
formatter = generic
120

    
121
[handler_sql_log]
122
class = FileHandler
123
args = ('log/sql.log','a')
124
level = DEBUG
125
formatter = generic
126

    
127
[handler_root_log]
128
class = FileHandler
129
args = ('log/root.log','a')
130
level = DEBUG
131
formatter = generic
132

    
133
[handler_vigiboard_log]
134
class = FileHandler
135
args = ('log/vigiboard.log','a')
136
level = DEBUG
137
formatter = generic
138

    
139
[handler_auth_log]
140
class = FileHandler
141
args = ('log/auth.log','a')
142
level = DEBUG
143
formatter = generic
144

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