[dancer-users] changing of default views_directory or port

Stefan Hornburg (Racke) racke at linuxia.de
Mon May 20 09:19:09 BST 2013

On 05/20/2013 10:15 AM, Rameswara Sashi Kiran Challa wrote:
> 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.

I already told you on this mailing list that this is a bug. We'll try to
fix it as soon as possible.

> 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.
> Also when I do dancer2 --version it shows Dancer 1.3113. Is this correct?

No, that doesn't look correct.

> Is it correct that Dancer is not a requirement for Dancer2?



LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the dancer-users mailing list