Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / production.ini @ 805cc54a

History | View | Annotate | Download (3.74 KB)

1
#
2
# dashboard - 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

    
21
[app:main]
22
use = egg:dashboard
23
full_stack = true
24
#lang = ru
25
cache_dir = %(here)s/data
26
beaker.session.key = dashboard
27
beaker.session.secret = somesecret
28
# If you'd like to fine-tune the individual locations of the cache data dirs
29
# for the Cache data, or the Session saves, un-comment the desired settings
30
# here:
31
#beaker.cache.data_dir = %(here)s/data/cache
32
#beaker.session.data_dir = %(here)s/data/sessions
33

    
34
# pick the form for your database
35
# %(here) may include a ':' character on Windows environments; this can
36
# invalidate the URI when specifying a SQLite db via path name
37
# sqlalchemy.url=postgres://username:password@hostname:port/databasename 
38
sqlalchemy.url=mysql://root:tandreja@localhost:3306/newdb
39

    
40

    
41
# If you have sqlite, here's a simple default to get you started
42
# in development
43

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

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

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

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

    
82
# "level = INFO" logs SQL queries.
83
# "level = DEBUG" logs SQL queries and results.
84
# "level = WARN" logs neither.  (Recommended for production systems.)
85

    
86
[loggers]
87
keys = root
88

    
89
[handlers]
90
keys = console
91

    
92
[formatters]
93
keys = generic
94

    
95
# If you create additional loggers, add them as a key to [loggers]
96
[logger_root]
97
level = WARN 
98
handlers = console
99

    
100
[handler_console]
101
class = StreamHandler
102
args = (sys.stderr,)
103
level = WARN
104
formatter = generic
105

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