perl dance multiple hosting @dotgeek
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. 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 ? 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 ? Thanks in advance David
On Mon, 13 Aug 2012 20:01:30 +0200 gurugeek <gurugeekphp@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@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
Hello Dave,
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.
Thanks a lot. Is good to know that this could be useful :) I am slightly confused with the right way to sever through apache (without the reverse proxy) my understanding is that we need to install https://github.com/spiritloose/mod_psgi before configuring the vhost with PerlSetVar psgi_app /websites/myapp.example.com/app.pl Is this correct? I am asking as the files in the repo are 3 years old and there isn't a download package beside link the github download link ..
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?
Well perhaps in first instance it is easier to tell users to use app.pl for their app and then we can think about a smarter way to do it !
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 agree very much in the deal with users that expect the moon on a stick :) The system setup took a while and it should be working fine. We wont' be offering much support thou but of course simple guides and forums will be available.
I note you've got reCAPTCHA which should keep out some users though, as it's become almost unusable these days :)
yes well we will use something else for the hosting signup with a better CAPTCHA. I, for one, never get reCAPTCHA right ! Thanks in advance for letting me know about the mod_psgi Best Regards David
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@preshweb.co.uk>wrote:
On Mon, 13 Aug 2012 20:01:30 +0200 gurugeek <gurugeekphp@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@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@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
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@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@preshweb.co.uk>wrote:
On Mon, 13 Aug 2012 20:01:30 +0200 gurugeek <gurugeekphp@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@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@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
participants (2)
-
David Precious -
gurugeek