[Catalyst] Cat App on dotcloud

Hans Staugaard h.staugaard at tweakker.com
Wed Nov 2 09:30:58 GMT 2011


Hi All

I've uploaded a sample app to github, showing how to configure a
Catalyst 5.9 app on dotCloud.

https://github.com/hstaugaard/Catalyst-DotCloud

/Hans

On 11/01/11 11:27, Dermot wrote:
> On 1 November 2011 01:51, Richard Thomas <ret at mac.com> wrote:
>>> Does anyone have any experience of deploying a Cat App onto dotcloud?
>>> I have an cat app that works fine on my pc using the built-in server
>>> but doesn't work on dotcloud.
>> Hi Dermot,
>> I have a Catalyst-based app running successfully on DotCloud.
>>
>>> I have seen a couple of examples but seem to have come un-stuck. After
>>> creating my Cat app and the installing the dotcloud cli, I pushed my
>>> app thus:
>>> ...
>> There are a few gotchas that I encountered along the way.
>>
>> 1) I could never get Session::Store::FastMmap to compile on my dotcloud service, and eventually gave up and used Session::Store::File
>> 2) The latest versions of Catalyst (with built-in Plack) use a type of streaming that dotcloud's nginx-based service doesn't cope with. (Or didn't, at least, when my app exploded on upgrading Catalyst a few months back. This problem may now be solved.)
>> 3) One of the tutorials had a typo in the Makefile.PL that it took me a long time to figure out.
>>
>> What I suggest you do is ssh into your dotcloud www instance, and just run perl -MMoose -e 'say "OK";' and you'll quickly see whether Moose is available or not. Until I solved the problem referred to at (3) above, I had just installed everything via ssh, ie:
>>> ssh myapp.www
>> $ cpanm install Moose
>> $ cpanm install Catalyst
>> $ cpanm install Template
>>
>> etc. Eventually I was able to plackup my app via ssh. I couldn't connect to it, of course, but at least I knew it compiled OK.
>>
>> I see miyagawa has replied to your post on dotcloud's forum as well. Hope you solve it, dotcloud is an excellent platform.
> Wow lots of information there and back on the forum. I'll get busy
> tonight when I'm not at $work and see if I can push things along.
>
> Thanks for the advice.
> Dp.
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/


More information about the Catalyst mailing list