I apologize for posting this again and again. Wasn't sure if the admin had accepted the question. I am sorry again. Thank you -Sashi On Wed, May 22, 2013 at 3:13 PM, Stefan Hornburg (Racke) <racke@linuxia.de>wrote:
On 05/22/2013 11:28 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.
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? Is it correct that Dancer is not a requirement for Dancer2?
Thanks for your time,
What about reading my response on the mailing list instead of posting it again and again??
Regards Racke
-- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team