Created
December 14, 2010 09:50
-
-
Save amcgregor/740202 to your computer and use it in GitHub Desktop.
marrow.configuration example multi-part configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extensions: | |
- [!!python marrow.mail:DeliveryExtension, *mail] | |
- !!python marrow.mail.logger:LoggerExtension | |
mail: &mail | |
server: localhost | |
user: user | |
password: xyzzy | |
administrator: [email protected] | |
message: | |
author: [email protected] | |
mapping: &mapping | |
/: !!python web.core:Application, *application | |
application: &application | |
needs: | |
- sessions | |
- cache | |
root: !!python myapp.controllers:RootController | |
templating: | |
engine: mako | |
db: | |
engine: web.db.mongoengine_:MongoEngineMiddleware | |
url: mongo://localhost/cms | |
model: !!python myapp.model | |
auth: | |
name: uid | |
lookup: !!python myapp.model:User.lookup | |
authenticate: !!python myapp.model:User.authenticate | |
handler: /users/authenticate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env marrow | |
version: 1 | |
exec: [!!python marrow.server:serve, *server] | |
server: &server | |
reload: Yes | |
use: !!python web.server.http:HTTPServer | |
host: ["127.0.0.1", "::1"] | |
port: 80 | |
application: [!!python marrow.wsgi.mapper:Mapper, *mapping] | |
extensions: | |
- !!python marrow.error:DebuggerExtension | |
logging: | |
handlers: | |
console: &console | |
- !!python marrow.log:StreamHandler | |
!!include application.yaml | |
!!include logging.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logging: | |
loggers: | |
root: | |
level: warn | |
handlers: *console | |
myapp: | |
level: info | |
handlers: *console | |
qualname: myapp | |
propagate: No | |
webcore: | |
level: info | |
handlers: *console | |
qualname: web | |
propagate: No | |
formatters: | |
generic: "%(asctime)s %(levelname)-5.5s [%(name)s] %(message)s" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env marrow | |
version: 1 | |
exec: [!!python marrow.server:serve, *server] | |
server: &server | |
daemon: Yes | |
use: !!python web.server.http:HTTPServer | |
host: ["127.0.0.1", "::1"] | |
port: [80, 447] | |
application: [!!python marrow.wsgi.mapper:Mapper, *mapping] | |
extensions: | |
- !!python marrow.error:MailerExtension | |
logging: | |
handlers: | |
console: &console | |
- !!python marrow.log:FileHandler | |
- path: var/log/application.log | |
!!include application.yaml | |
!!include logging.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment