Hi, The clear documentation and articles I've seen on Dancer indicate it is my ideal base for a Perl web application. Having just downloaded the latest stable release however I have a couple of issues that I thought I would ask here before creating a trouble ticket. I'm running a mixed Debian stable/testing distribution (lenny/squeeze) with perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi. 1. There appears to be duplicate subroutine definitions in the dancer script: mark@lifebook:~$ dancer -a myapp Subroutine main::dirname redefined at /usr/bin/dancer line 149 Subroutine main::path redefined at /usr/bin/dancer line 149 but this doesn't prevent the 'myapp' creation. 2. My 'myapp' starts fine, but all requests result in a 500 Internal Server Error. I have enabled logging and error publication in config.yml but am not seeing anything in either the http response or in the logs/development.log file. mark@lifebook:~/myapp$ cat config.yml layout: "main" logger: "file" log: "debug" show_errors: 1 So my two problems are that a) it doesn't work at the moment, and b) I can't seem to debug things. Looking for pointers to what I've read/done wrong... Cheers, Mark. -- Mark Lawrence
Le 19/05/2010 14:59, Mark Lawrence a écrit :
mark@lifebook:~$ dancer -a myapp Subroutine main::dirname redefined at /usr/bin/dancer line 149 Subroutine main::path redefined at /usr/bin/dancer line 149
Hmm, we should fix these warnings, indeed. Thanks for the note.
2. My 'myapp' starts fine, but all requests result in a 500 Internal Server Error. I have enabled logging and error publication in config.yml but am not seeing anything in either the http response or in the logs/development.log file.
mark@lifebook:~/myapp$ cat config.yml layout: "main" logger: "file" log: "debug" show_errors: 1
So my two problems are that a) it doesn't work at the moment, and b) I can't seem to debug things. Looking for pointers to what I've read/done wrong...
Yes, this is a known issue with Dancer 1.18, we're going to release 1.1801 to fix that. The workaround is pretty simple, as you can see: http://github.com/sukria/Dancer/issues#issue/69 Happy dancing. -- Alexis Sukrieh
participants (2)
-
Alexis Sukrieh -
Mark Lawrence