<div dir="ltr"><div>Hi David! psgi_application resource does not handle dependencies, it only installs init scripts for different psgi/plack applications. Dependencies is different task, my current approach is to build all dependencies on dedicated server (I don&#39;t need chef for it, I use jenkins pelr plugin (<a href="https://github.com/melezhik/perl-plugin">https://github.com/melezhik/perl-plugin</a>) for it ) and then install all (now with chef) as archive ready to use without compiling/installing anything on target server.<br>
<br></div>I&#39;ll think about some introduction into psgi coobook, but some explanations may be found on <a href="http://community.opscode.com/cookbooks/psgi">http://community.opscode.com/cookbooks/psgi</a> or on  <a href="https://github.com/melezhik/cookbooks/tree/master/psgi">https://github.com/melezhik/cookbooks/tree/master/psgi</a><br>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/19 David Golden <span dir="ltr">&lt;<a href="mailto:xdg@xdg.me" target="_blank">xdg@xdg.me</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That&#39;s awesome!  Could you write it up somewhere and I&#39;ll link to it<br>
on <a href="http://perlchef.com" target="_blank">perlchef.com</a>?<br>
<br>
How do you handle dependencies?<br>
<div><div class="h5"><br>
On Fri, Apr 19, 2013 at 4:23 AM, Alexey Melezhik &lt;<a href="mailto:melezhik@gmail.com">melezhik@gmail.com</a>&gt; wrote:<br>
&gt; Hi! I have created a chef cookbook to deploy various web applications with<br>
&gt; plackup/psgi and Dancer is among them.<br>
&gt; Anyone who deal with Dancer deployment can use it as follow:<br>
&gt;<br>
&gt; psgi_application &#39;my application&#39; do<br>
&gt;       application_user    &#39;user&#39;<br>
&gt;       application_home    &#39;/home/user/app/MyApplication&#39;<br>
&gt;       script<br>
&gt; &#39;/home/user/app/MyApplication/scripts/my-dancer-app.psgi&#39;<br>
&gt;       operator            &#39;Dancer&#39;<br>
&gt;       action              &#39;install&#39;<br>
&gt; end<br>
&gt;<br>
&gt; This code will install dancer psgi application init script ready to use.<br>
&gt; Supported platforms are debian and ubuntu:<br>
&gt;<br>
&gt; /etc/init.d/my-dancer-app start<br>
&gt;<br>
&gt; /etc/init.d/my-dancer-app stop<br>
&gt; /etc/init.d/my-dancer-app restart<br>
&gt;<br>
&gt; See more usage details on <a href="http://community.opscode.com/cookbooks/psgi" target="_blank">http://community.opscode.com/cookbooks/psgi</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; dancer-users mailing list<br>
&gt; <a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
&gt; <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
David Golden &lt;<a href="mailto:xdg@xdg.me">xdg@xdg.me</a>&gt;<br>
Take back your inbox! → <a href="http://www.bunchmail.com/" target="_blank">http://www.bunchmail.com/</a><br>
Twitter/IRC: @xdg<br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</font></span></blockquote></div><br></div>