<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using Plack to run a Dancer app under a CGI environment</title>
	<atom:link href="http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/</link>
	<description>I will press many keys on my keyboard causing an implementation to occur.</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:14:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tatsuhiko Miyagawa</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46083</link>
		<dc:creator>Tatsuhiko Miyagawa</dc:creator>
		<pubDate>Fri, 15 Jan 2010 03:24:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46083</guid>
		<description>Yes, Robin&#039;s example is more compatible an DRY (Do not Repeat Yourself) since that works as a FCGI script as well as a standalone server.

Alternatively you can write like:

  use Plack::Runner;
  Plack::Runner-&gt;run(&#039;/path/to/your/app.psgi&#039;);

We&#039;re in the process of renaming Plack::Server into something else now, and i recommend you to write your bootstrap script like that.</description>
		<content:encoded><![CDATA[<p>Yes, Robin&#8217;s example is more compatible an DRY (Do not Repeat Yourself) since that works as a FCGI script as well as a standalone server.</p>
<p>Alternatively you can write like:</p>
<p>  use Plack::Runner;<br />
  Plack::Runner-&gt;run(&#8216;/path/to/your/app.psgi&#8217;);</p>
<p>We&#8217;re in the process of renaming Plack::Server into something else now, and i recommend you to write your bootstrap script like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin Smidsrød</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46082</link>
		<dc:creator>Robin Smidsrød</dc:creator>
		<pubDate>Thu, 14 Jan 2010 12:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46082</guid>
		<description>You are aware that you can run any .psgi as CGI by setting the shebang to use plackup and making the .psgi executable?

Like this: #!/usr/bin/env plackup

This of course requires that plackup is available in the path of the user running CGI script. If you use local::lib or PERL5LIB things quickly get more complicated. If you&#039;re into running it as fastcgi (for more speed) without having root you should take a look at my Plack::App::Apache::ActionWrapper on CPAN.</description>
		<content:encoded><![CDATA[<p>You are aware that you can run any .psgi as CGI by setting the shebang to use plackup and making the .psgi executable?</p>
<p>Like this: #!/usr/bin/env plackup</p>
<p>This of course requires that plackup is available in the path of the user running CGI script. If you use local::lib or PERL5LIB things quickly get more complicated. If you&#8217;re into running it as fastcgi (for more speed) without having root you should take a look at my Plack::App::Apache::ActionWrapper on CPAN.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sukria</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46081</link>
		<dc:creator>sukria</dc:creator>
		<pubDate>Wed, 13 Jan 2010 11:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46081</guid>
		<description>And now that miyagawa shiped CGI::PSGI 0.07, we can deploy any Dancer app under Apache2 + mod_perl as well.</description>
		<content:encoded><![CDATA[<p>And now that miyagawa shiped CGI::PSGI 0.07, we can deploy any Dancer app under Apache2 + mod_perl as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trydancing</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46080</link>
		<dc:creator>trydancing</dc:creator>
		<pubDate>Wed, 13 Jan 2010 01:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46080</guid>
		<description>Thanks for the prompt response.
sukria++, miyagawa++

I disabled warning to play around with Dancer and was able to create a simple yet working website in only hours.

Dancer rocks!</description>
		<content:encoded><![CDATA[<p>Thanks for the prompt response.<br />
sukria++, miyagawa++</p>
<p>I disabled warning to play around with Dancer and was able to create a simple yet working website in only hours.</p>
<p>Dancer rocks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sukria</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46079</link>
		<dc:creator>sukria</dc:creator>
		<pubDate>Tue, 12 Jan 2010 10:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46079</guid>
		<description>@trydancing: issue reported: http://github.com/sukria/Dancer/issues#issue/14 and BTW, miyagawa has fixed the warn in Plack::Server::Standalone so both sides will be fixed soon.

@Sawyer X : you&#039;re welcome, thanks for blogging about Dancer, that&#039;s really nice!</description>
		<content:encoded><![CDATA[<p>@trydancing: issue reported: <a href="http://github.com/sukria/Dancer/issues#issue/14" rel="nofollow">http://github.com/sukria/Dancer/issues#issue/14</a> and BTW, miyagawa has fixed the warn in Plack::Server::Standalone so both sides will be fixed soon.</p>
<p>@Sawyer X : you&#8217;re welcome, thanks for blogging about Dancer, that&#8217;s really nice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sawyer X</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46078</link>
		<dc:creator>Sawyer X</dc:creator>
		<pubDate>Tue, 12 Jan 2010 08:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46078</guid>
		<description>Hey!

Yesterday, a few hours after my post, I was sitting at a hummus place with my girlfriend. I told her about the post I wrote. I decided to take a minute to check online if anyone has any example of how to run PSGI as CGI.

One of the first results on Google was this page!

So, first of all, thanks for taking the time to correct me and show me an actual example of how to do this.

Secondly, thanks for Dancer! :)</description>
		<content:encoded><![CDATA[<p>Hey!</p>
<p>Yesterday, a few hours after my post, I was sitting at a hummus place with my girlfriend. I told her about the post I wrote. I decided to take a minute to check online if anyone has any example of how to run PSGI as CGI.</p>
<p>One of the first results on Google was this page!</p>
<p>So, first of all, thanks for taking the time to correct me and show me an actual example of how to do this.</p>
<p>Secondly, thanks for Dancer! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sukria</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46077</link>
		<dc:creator>sukria</dc:creator>
		<pubDate>Tue, 12 Jan 2010 08:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46077</guid>
		<description>Currently, plackup use warn to tell the user the connection is up, and Dancer will catch that warning as a &quot;Compilation Warning&quot;. That&#039;s either a strictness leak in Dancer&#039;s code or an overuse of warn in plackup, depending on the point of view of the observer.

Anyways, I&#039;m going soon to fix that in Dancer&#039;s code, and hopefully plackup won&#039;t use warn to output information on STDERR.

In the meantime, I suggest you just disable the strict mode in Dancer by setting watnings to false, in your config.yml file:

warnings: 0</description>
		<content:encoded><![CDATA[<p>Currently, plackup use warn to tell the user the connection is up, and Dancer will catch that warning as a &#8220;Compilation Warning&#8221;. That&#8217;s either a strictness leak in Dancer&#8217;s code or an overuse of warn in plackup, depending on the point of view of the observer.</p>
<p>Anyways, I&#8217;m going soon to fix that in Dancer&#8217;s code, and hopefully plackup won&#8217;t use warn to output information on STDERR.</p>
<p>In the meantime, I suggest you just disable the strict mode in Dancer by setting watnings to false, in your config.yml file:</p>
<p>warnings: 0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trydancing</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46076</link>
		<dc:creator>trydancing</dc:creator>
		<pubDate>Tue, 12 Jan 2010 01:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46076</guid>
		<description>I followed your instruction on: http://www.sukria.net/fr/archives/2009/09/20/mounting-a-dancer-app-into-apache-psgiplack/

But got a compilation warning with the following stack error:

&lt;code&gt;
main in /home/saturn/perl5/bin/plackup l. 9
Plack::Runner in /home/saturn/perl5/lib/perl5/Plack/Runner.pm l. 120
Plack::Server::Standalone in /home/saturn/perl5/lib/perl5/Plack/Server/Standalone.pm l. 51
Plack::Server::Standalone in /home/saturn/perl5/lib/perl5/Plack/Server/Standalone.pm l. 101
Plack::Server::Standalone in /home/saturn/perl5/lib/perl5/Plack/Server/Standalone.pm l. 142
Plack::Util in /home/saturn/perl5/lib/perl5/Plack/Util.pm l. 127
Try::Tiny in /home/saturn/perl5/lib/perl5/Try/Tiny.pm l. 39
Try::Tiny in /home/saturn/perl5/lib/perl5/Try/Tiny.pm l. 42
Plack::Util in /home/saturn/perl5/lib/perl5/Plack/Util.pm l. 121
Plack::Component in /home/saturn/perl5/lib/perl5/Plack/Component.pm l. 39
Plack::Middleware::ContentLength in /home/saturn/perl5/lib/perl5/Plack/Middleware/ContentLength.pm l. 10
Plack::Component in /home/saturn/perl5/lib/perl5/Plack/Component.pm l. 39
Plack::Middleware::AccessLog in /home/saturn/perl5/lib/perl5/Plack/Middleware/AccessLog.pm l. 21
Plack::Component in /home/saturn/perl5/lib/perl5/Plack/Component.pm l. 39
Plack::Middleware::StackTrace in /home/saturn/perl5/lib/perl5/Plack/Middleware/StackTrace.pm l. 27
Try::Tiny in /home/saturn/perl5/lib/perl5/Try/Tiny.pm l. 39
Try::Tiny in /home/saturn/perl5/lib/perl5/Try/Tiny.pm l. 42
Plack::Middleware::StackTrace in /home/saturn/perl5/lib/perl5/Plack/Middleware/StackTrace.pm l. 27
Plack::Util in app.psgi l. 12
Dancer in /home/saturn/perl5/lib/perl5/Dancer.pm l. 131
Dancer::Handler::PSGI in /home/saturn/perl5/lib/perl5/Dancer/Handler/PSGI.pm l. 21
Dancer::Handler in /home/saturn/perl5/lib/perl5/Dancer/Handler.pm l. 60
Dancer::Renderer in /home/saturn/perl5/lib/perl5/Dancer/Renderer.pm l. 24
Dancer::Renderer in /home/saturn/perl5/lib/perl5/Dancer/Renderer.pm l. 96
Dancer::Route in /home/saturn/perl5/lib/perl5/Dancer/Route.pm l. 235
Dancer::Error in /home/saturn/perl5/lib/perl5/Dancer/Error.pm l. 21
Dancer::Error in /home/saturn/perl5/lib/perl5/Dancer/Error.pm l. 120
&lt;/code&gt;

What could be causing the problem?</description>
		<content:encoded><![CDATA[<p>I followed your instruction on: <a href="http://www.sukria.net/fr/archives/2009/09/20/mounting-a-dancer-app-into-apache-psgiplack/" rel="nofollow">http://www.sukria.net/fr/archives/2009/09/20/mounting-a-dancer-app-into-apache-psgiplack/</a></p>
<p>But got a compilation warning with the following stack error:</p>
<p><code><br />
main in /home/saturn/perl5/bin/plackup l. 9<br />
Plack::Runner in /home/saturn/perl5/lib/perl5/Plack/Runner.pm l. 120<br />
Plack::Server::Standalone in /home/saturn/perl5/lib/perl5/Plack/Server/Standalone.pm l. 51<br />
Plack::Server::Standalone in /home/saturn/perl5/lib/perl5/Plack/Server/Standalone.pm l. 101<br />
Plack::Server::Standalone in /home/saturn/perl5/lib/perl5/Plack/Server/Standalone.pm l. 142<br />
Plack::Util in /home/saturn/perl5/lib/perl5/Plack/Util.pm l. 127<br />
Try::Tiny in /home/saturn/perl5/lib/perl5/Try/Tiny.pm l. 39<br />
Try::Tiny in /home/saturn/perl5/lib/perl5/Try/Tiny.pm l. 42<br />
Plack::Util in /home/saturn/perl5/lib/perl5/Plack/Util.pm l. 121<br />
Plack::Component in /home/saturn/perl5/lib/perl5/Plack/Component.pm l. 39<br />
Plack::Middleware::ContentLength in /home/saturn/perl5/lib/perl5/Plack/Middleware/ContentLength.pm l. 10<br />
Plack::Component in /home/saturn/perl5/lib/perl5/Plack/Component.pm l. 39<br />
Plack::Middleware::AccessLog in /home/saturn/perl5/lib/perl5/Plack/Middleware/AccessLog.pm l. 21<br />
Plack::Component in /home/saturn/perl5/lib/perl5/Plack/Component.pm l. 39<br />
Plack::Middleware::StackTrace in /home/saturn/perl5/lib/perl5/Plack/Middleware/StackTrace.pm l. 27<br />
Try::Tiny in /home/saturn/perl5/lib/perl5/Try/Tiny.pm l. 39<br />
Try::Tiny in /home/saturn/perl5/lib/perl5/Try/Tiny.pm l. 42<br />
Plack::Middleware::StackTrace in /home/saturn/perl5/lib/perl5/Plack/Middleware/StackTrace.pm l. 27<br />
Plack::Util in app.psgi l. 12<br />
Dancer in /home/saturn/perl5/lib/perl5/Dancer.pm l. 131<br />
Dancer::Handler::PSGI in /home/saturn/perl5/lib/perl5/Dancer/Handler/PSGI.pm l. 21<br />
Dancer::Handler in /home/saturn/perl5/lib/perl5/Dancer/Handler.pm l. 60<br />
Dancer::Renderer in /home/saturn/perl5/lib/perl5/Dancer/Renderer.pm l. 24<br />
Dancer::Renderer in /home/saturn/perl5/lib/perl5/Dancer/Renderer.pm l. 96<br />
Dancer::Route in /home/saturn/perl5/lib/perl5/Dancer/Route.pm l. 235<br />
Dancer::Error in /home/saturn/perl5/lib/perl5/Dancer/Error.pm l. 21<br />
Dancer::Error in /home/saturn/perl5/lib/perl5/Dancer/Error.pm l. 120<br />
</code></p>
<p>What could be causing the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ImaginaryRobot</title>
		<link>http://www.sukria.net/fr/archives/2010/01/11/using-plack-to-run-a-dancer-app-under-a-cgi-environment/comment-page-1/#comment-46075</link>
		<dc:creator>ImaginaryRobot</dc:creator>
		<pubDate>Mon, 11 Jan 2010 19:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=1373#comment-46075</guid>
		<description>Can you post an example using rewriterules instead of an AddHandler config?  I have hacked together a CGI+mod_rewrite solution (no access to virtualhost config), but I suspect it&#039;s doing more work than it needs to.</description>
		<content:encoded><![CDATA[<p>Can you post an example using rewriterules instead of an AddHandler config?  I have hacked together a CGI+mod_rewrite solution (no access to virtualhost config), but I suspect it&#8217;s doing more work than it needs to.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

