[Dancer-users] perl dance multiple hosting @dotgeek

gurugeek gurugeekphp at gmail.com
Tue Aug 14 21:26:55 CEST 2012


okay I found my own answer :)
all is needed is mod_perl and Plack !
Test is live at http://dancer.2.ai
this is a simple test using a dancer self-contained one file app (using the
tutorial from the advent calendar).

Dave I would be thankful if you and/or others would be willing to test it
with some other code. If you email me directly I will be glad to give you
the SFTP login/pw.
Best Regards
David



On Tue, Aug 14, 2012 at 7:26 PM, gurugeek <gurugeekphp at gmail.com> wrote:

> or actually I just need
> mod_perl  and Plack::Handler::Apache2
> as per :
> http://lists.perldancer.org/pipermail/dancer-users/2010-August/000199.html
>
> ?
>
> I was confused as the mod_apache is still listed in the plack website :)
>
>
> On Tue, Aug 14, 2012 at 11:24 AM, David Precious <davidp at preshweb.co.uk>wrote:
>
>> On Mon, 13 Aug 2012 20:01:30 +0200
>> gurugeek <gurugeekphp at gmail.com> wrote:
>>
>> > hello,
>> > we are finalising a totally free hosting service for programmers (
>> > dotgeek.org). We used to run this in 2004-2005 with PHP 5 etc. and we
>> > are now trying to extend the service to offer, in addition to PHP,
>> > MySQL and Ruby (Sinatra, Camping) with Dancer.
>> >
>> > I did try it yesterday and today and I think it is very interesting
>> > and we would like to add support for dancer.
>>
>> That's awesome - I'll be happy to provide whatever help I can.
>>
>>
>> > I have a quick question regarding the best solution for a multiple
>> > hosting environment (we are using apache with a and we have a proper
>> > security system in place). According to your deployment guide the
>> > PSGI + Apache setup will require the application URL in the vhost
>> > configuration
>> >
>> > PerlSetVar psgi_app /websites/myapp.example.com/app.pl
>> >
>> > this might be an issue if the user rename the application. In sinatra
>> > with a passenger  deployment (aka mod_ruby) you can define a full
>> > public folder and through the config.ru file, that is easier to edit
>> > from the users that will have only SFTP access, you define which
>> > application you wish to run.
>> >
>> > Is there a similar option with Dancer or there is a need to declare
>> > the app name in the apache vhost configuration ?
>>
>> You could probably set up e.g. /home/$username/app.pl or similar which
>> they can edit, which loads the appropriate app; they could edit that to
>> choose which app to load, perhaps?
>>
>> Or use some Apache trickery to extract a subdomain from the query and
>> use that as the path, as people often do with mass name-based virtual
>> hosting, so e.g. app1.user.dotgeek.org is /home/$user/$app1/bin/app.pl
>> etc - that way they could just upload a new app and hit
>> $appname.$user.dotgeek.org or similar and have it Just Work (in theory).
>>
>> > I would also welcome any feedback about this service that will
>> > essentially offer dancer + mysql + sqlite totally free. Do you think
>> > it would be interested and help users to get started ?
>>
>> Certainly - the ability for a user to try out their first Dancer app
>> for free without having to install stuff is likely to be of use to
>> people I think.  This is something I sort of toyed with the idea of
>> trying to offer myself, but I decided I didn't have the time to
>> implement it in a secure enough way and manage it closely enough to
>> limit abuse etc (and to deal with the users, who from past experience
>> will expect the moon on a stick, even though they're not paying a
>> penny...)
>>
>> I note you've got reCAPTCHA which should keep out some users though, as
>> it's become almost unusable these days :)
>>
>> Anyway - I, and the other Dancer core devs, will be happy to provide
>> whatever assistance we can to you in order to get Dancer support into
>> dotgeek.org.
>>
>> Cheers!
>>
>> Dave P
>>
>> --
>> David Precious ("bigpresh") <davidp at preshweb.co.uk>
>> http://www.preshweb.co.uk/     www.preshweb.co.uk/twitter
>> www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
>> www.preshweb.co.uk/cpan        www.preshweb.co.uk/github
>>
>>
>> _______________________________________________
>> Dancer-users mailing list
>> Dancer-users at perldancer.org
>> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120814/584a4306/attachment-0001.htm>


More information about the Dancer-users mailing list