|more useful options|
Dancer & Plackup - Redirect not refreshing page databy jeromek (Novice)
|on Aug 07, 2014 at 12:02 UTC||Need Help??|
jeromek has asked for the
wisdom of the Perl Monks concerning the following question:
Hi All Monks,
First of, let me say I haven't used perl for web dev in a long time and was still stuck on cgi. When asked to do small dev with the technology of my choice, I jumped on the occasion and ended up using Dancer. What a refreshing way to write web apps, easy to install, develop with, deploy...
Now that my small app is finished, I deploy it in production with plackup and starman behing nginx.sudo -u nginx /usr/local/bin/plackup -E production -s Starman --workers=2 -l /tmp/plack.sock -a bin/app.pl
I have some standard crud stuff and in particular a get and edit.
This worked great in dev mode, running perl bin/app.pl but after deploying in prod through plackup, the redirect after edit shows the get page but the data on the page is not updated. Refreshing the page (F5) does show the updated data.
Dancer is great but unfortunately lacks a bit of detailed doc and community. Hence I come here to ask for your wisdom.