[dancer-users] changing of default views_directory or port

Rameswara Sashi Kiran Challa schalla at umail.iu.edu
Wed May 15 12:56:34 BST 2013


Hi,

I recently started using Dancer2 (version 2-0.04 tar.gz from CPAN) to
develop web apps. I have developed one and am able to run it on the default
PSGI server at port 3000.

I am trying to change the views_directory within the app script (and not a
config file) using 'set views => /path/I/want/' as given in the Dancer2
documentation. However when I deploy the app it by default looks only in
'appsdir/views/' directory. Not sure why it doesn't look where I point it
to.

Same issue with changing the port as well. ('set port => 3001")

Checked to see if I have Dancer2::Config module installed and I didn't. I
tried installing it using cpanm and it had failed to install (as it had
some tests failed). [Tests that failed from logs: t/logger.t Failed test:2]

I thought I should get a development version from github. Tried installing
from github using cpanm and I get an error that says "Couldn't find module
or a distribution git://github.com/PerlDancer/Dancer2.git"

Please let me know what is it that I am missing.

Thanks for your time,

-Sashi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130515/b815c08c/attachment.htm>


More information about the dancer-users mailing list