Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2304: deployment.ini.6554.diff

File deployment.ini.6554.diff, 4.3 KB (added by lszyba1, 3 years ago)

deployment patch

  • devtools/templates/turbogears/+package+/config/deployment.ini_tmpl_tmpl

     
    1515[server:main] 
    1616use = egg:Paste#http 
    1717host = 0.0.0.0 
    18 port = 8080 
     18#port = 8080 
    1919 
    2020[app:main] 
    2121use = egg:{{project}} 
     
    3636# turbogears.database 
    3737# %(here) may include a ':' character on Windows environments; this can 
    3838# invalidate the URI when specifying a SQLite db via path name 
     39# sqlalchemy.url=postgres://username:password@hostname:port/databasename  
     40# sqlalchemy.url=mysql://username:password@hostname:port/databasename 
     41 
    3942sqlalchemy.url = sqlite:///%(here)s/somedb.db 
    4043sqlalchemy.echo = False 
     44sqlalchemy.pool_recycle = 3600 
    4145{{endif}} 
    4246 
    4347# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* 
  • devtools/templates/turbogears/+package+/config/deployment.ini_tmpl

    Property changes on: devtools/templates/turbogears/+package+/config/deployment.ini_tmpl_tmpl
    ___________________________________________________________________
    Added: svn:mergeinfo
    
     
    1 # 
    2 # {{project}} - TurboGears configuration 
    3 # 
    4 # The %(here)s variable will be replaced with the parent directory of this file 
    5 # 
    6 [DEFAULT] 
    7 # WARGING == If debug is not set to false, you'll get the interactive 
    8 # debugger on production, which is a huge security hole.  
    9  
    10 debug = false 
    11 email_to = you@yourdomain.com 
    12 smtp_server = localhost 
    13 error_email_from = paste@localhost 
    14  
    15 [server:main] 
    16 use = egg:Paste#http 
    17 host = 0.0.0.0 
    18 port = 8080 
    19  
    20 [app:main] 
    21 use = egg:{{project}} 
    22 full_stack = true 
    23 cache_dir = %(here)s/data 
    24 beaker.session.key = {{package}} 
    25 beaker.session.secret = ${app_instance_secret} 
    26 app_instance_uuid = ${app_instance_uuid} 
    27  
    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 {{if sqlalchemy}} 
    35 # Specify the database for SQLAlchemy to use via 
    36 # turbogears.database 
    37 # %(here) may include a ':' character on Windows environments; this can 
    38 # invalidate the URI when specifying a SQLite db via path name 
    39 sqlalchemy.url = sqlite:///%(here)s/somedb.db 
    40 sqlalchemy.echo = False 
    41 {{endif}} 
    42  
    43 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* 
    44 # Debug mode will enable the interactive debugging tool, allowing ANYONE to 
    45 # execute malicious code after an exception is raised. 
    46 #set debug = false 
    47  
    48 # Logging configuration 
    49 # Add additional loggers, handlers, formatters here 
    50 # Uses python's logging config file format 
    51 # http://docs.python.org/lib/logging-config-fileformat.html 
    52  
    53 [loggers] 
    54 keys = root, {{package_logger}}{{if sqlalchemy}}, sqlalchemy{{endif}}{{if auth == "sqlalchemy"}}, auth{{endif}} 
    55  
    56 [handlers] 
    57 keys = console 
    58  
    59 [formatters] 
    60 keys = generic 
    61  
    62 # If you create additional loggers, add them as a key to [loggers] 
    63 [logger_root] 
    64 level = INFO 
    65 handlers = console 
    66  
    67 [logger_{{package_logger}}] 
    68 level = INFO 
    69 handlers = 
    70 qualname = {{package_logger}} 
    71  
    72 {{if sqlalchemy}} 
    73  
    74 [logger_sqlalchemy] 
    75 level = WARN 
    76 handlers = 
    77 qualname = sqlalchemy.engine 
    78 # "level = INFO" logs SQL queries. 
    79 # "level = DEBUG" logs SQL queries and results. 
    80 # "level = WARN" logs neither.  (Recommended for production systems.) 
    81 {{endif}} 
    82  
    83 {{if auth == "sqlalchemy"}} 
    84  
    85 # A logger for authentication, identification and authorization -- this is 
    86 # repoze.who and repoze.what: 
    87 [logger_auth] 
    88 level = WARN 
    89 handlers =  
    90 qualname = auth 
    91 {{endif}} 
    92  
    93 # If you create additional handlers, add them as a key to [handlers] 
    94 [handler_console] 
    95 class = StreamHandler 
    96 args = (sys.stderr,) 
    97 level = NOTSET 
    98 formatter = generic 
    99  
    100 # If you create additional formatters, add them as a key to [formatters] 
    101 [formatter_generic] 
    102 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s 
    103 datefmt = %H:%M:%S