dancer deployment with chef - psgi cookbook
Hi! I have created a chef cookbook to deploy various web applications with plackup/psgi and Dancer is among them. Anyone who deal with Dancer deployment can use it as follow: psgi_application 'my application' do application_user 'user' application_home '/home/user/app/MyApplication' script '/home/user/app/MyApplication/scripts/my-dancer-app.psgi' operator 'Dancer' action 'install' end This code will install dancer psgi application init script ready to use. Supported platforms are debian and ubuntu: /etc/init.d/my-dancer-app start /etc/init.d/my-dancer-app stop /etc/init.d/my-dancer-app restart See more usage details on http://community.opscode.com/cookbooks/psgi
That's awesome! Could you write it up somewhere and I'll link to it on perlchef.com? How do you handle dependencies? On Fri, Apr 19, 2013 at 4:23 AM, Alexey Melezhik <melezhik@gmail.com> wrote:
Hi! I have created a chef cookbook to deploy various web applications with plackup/psgi and Dancer is among them. Anyone who deal with Dancer deployment can use it as follow:
psgi_application 'my application' do application_user 'user' application_home '/home/user/app/MyApplication' script '/home/user/app/MyApplication/scripts/my-dancer-app.psgi' operator 'Dancer' action 'install' end
This code will install dancer psgi application init script ready to use. Supported platforms are debian and ubuntu:
/etc/init.d/my-dancer-app start
/etc/init.d/my-dancer-app stop /etc/init.d/my-dancer-app restart
See more usage details on http://community.opscode.com/cookbooks/psgi
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-- David Golden <xdg@xdg.me> Take back your inbox! → http://www.bunchmail.com/ Twitter/IRC: @xdg
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't need chef for it, I use jenkins pelr plugin ( https://github.com/melezhik/perl-plugin) for it ) and then install all (now with chef) as archive ready to use without compiling/installing anything on target server. I'll think about some introduction into psgi coobook, but some explanations may be found on http://community.opscode.com/cookbooks/psgi or on https://github.com/melezhik/cookbooks/tree/master/psgi 2013/4/19 David Golden <xdg@xdg.me>
That's awesome! Could you write it up somewhere and I'll link to it on perlchef.com?
How do you handle dependencies?
On Fri, Apr 19, 2013 at 4:23 AM, Alexey Melezhik <melezhik@gmail.com> wrote:
Hi! I have created a chef cookbook to deploy various web applications with plackup/psgi and Dancer is among them. Anyone who deal with Dancer deployment can use it as follow:
psgi_application 'my application' do application_user 'user' application_home '/home/user/app/MyApplication' script '/home/user/app/MyApplication/scripts/my-dancer-app.psgi' operator 'Dancer' action 'install' end
This code will install dancer psgi application init script ready to use. Supported platforms are debian and ubuntu:
/etc/init.d/my-dancer-app start
/etc/init.d/my-dancer-app stop /etc/init.d/my-dancer-app restart
See more usage details on http://community.opscode.com/cookbooks/psgi
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-- David Golden <xdg@xdg.me> Take back your inbox! → http://www.bunchmail.com/ Twitter/IRC: @xdg _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
participants (2)
-
Alexey Melezhik -
David Golden