summary refs log tree commit diff
path: root/environments
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-03-12 20:24:59 +0100
committerfranck cuny <franck@lumberjaph.net>2011-03-12 20:24:59 +0100
commit88dc5c48a1766d9440a1e176d579dfe4714f6ed4 (patch)
tree4c362d486f03e4c735086b107a041ddc566b28ed /environments
downloadballet-88dc5c48a1766d9440a1e176d579dfe4714f6ed4.tar.gz
initial import
Diffstat (limited to 'environments')
-rw-r--r--environments/development.yml27
-rw-r--r--environments/production.yml17
2 files changed, 44 insertions, 0 deletions
diff --git a/environments/development.yml b/environments/development.yml
new file mode 100644
index 0000000..bf9f228
--- /dev/null
+++ b/environments/development.yml
@@ -0,0 +1,27 @@
+# configuration file for development environment
+
+# the logger engine to use
+# console: log messages to STDOUT (your console where you started the
+#          application server)
+# file:    log message to a file in log/
+logger: "console"
+
+# the log level for this environement
+# core is the lowest, it shows Dancer's core log messages as well as yours
+# (debug, warning and error)
+log: "core"
+
+# should Dancer consider warnings as critical errors?
+warnings: 1
+
+# should Dancer show a stacktrace when an error is caught?
+show_errors: 1
+
+# auto_reload is a development and experimental feature
+# you should enable it by yourself if you want it
+# Module::Refresh is needed 
+# 
+# Be aware it's unstable and may cause a memory leak.
+# DO NOT EVER USE THAT FEATURE IN PRODUCTION 
+# OR TINY KITTENS SHALL DIE WITH LOTS OF SUFFERING
+auto_reload: 0
diff --git a/environments/production.yml b/environments/production.yml
new file mode 100644
index 0000000..86801b4
--- /dev/null
+++ b/environments/production.yml
@@ -0,0 +1,17 @@
+# configuration file for production environment
+
+# only log warning and error messsages
+log: "warning"
+
+# log message to a file in logs/
+logger: "file"
+
+# don't consider warnings critical
+warnings: 0
+
+# hide errors 
+show_errors: 0
+
+# cache route resolution for maximum performance
+route_cache: 1
+