Permalink
Browse files

Dancer::Deployment carifications about deployment under Apache+CGI

  • Loading branch information...
1 parent ec3bb9b commit 8c3c1d6be0fa27ada4f03258ddea7683c967a925 Alexis Sukrieh committed Sep 21, 2010
Showing with 13 additions and 5 deletions.
  1. +5 −2 lib/Dancer/Deployment.pod
  2. +8 −3 script/dancer
@@ -25,8 +25,11 @@ Start by adding the following to your apache configuration:
<Directory "/path/to/dancer/public">
AllowOverride None
- Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch -Indexes
- Order allow,deny
+
+ # +Indexes is important, if you don't enable it, Apache will silently try to get /index.html
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch +Indexes
+
+ Order allow,deny
Allow from all
AddHandler cgi-script .cgi
</Directory>
View
@@ -289,7 +289,7 @@ use Dancer ':syntax';
our \$VERSION = '0.1';
-get qr{^/(index.html)?/?\$} => sub {
+get '/' => sub {
template 'index';
};
@@ -430,17 +430,22 @@ appname: \"$name\"
",
'development.yml' =>
-"log: \"debug\"
+"log: \"core\"
warnings: 1
show_errors: 1
-auto_reload: $AUTO_RELOAD
+
+# auto_reload is a development feature
+# you should enable it by yourself if you want it
+# Module::Refresh is needed
+auto_reload: 0
",
'production.yml' =>
'log: "warning"
warnings: 0
show_errors: 0
route_cache: 1
+# never enable auto_reload in production
auto_reload: 0
',

0 comments on commit 8c3c1d6

Please sign in to comment.