[Mojolicious] How to Carton exec with crontab ?

2016-04-17 Thread mouleeshwaran . g
Basically the commands in the CRONTAB will be executed from the root 
folder. 
In-order to execute something with CARTON we are suppose to be in the 
directory where cpanfile resides.

I have tried CD (change directory) to the cpanfile directory and run the 
script.sh manually- it is working fine.
but, when i schedule the same script.sh in CRONTAB it is throwing error 
'carton: command not found'

here is my script.sh
 
#!/bin/bash
cd Desktop/projectFolder/
carton exec perl script/run.pl
--

And my cpanfile is in the directory 'projectFolder'

Thanks in advance. 

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Re: Hosting Mojolicious project in web Server

2016-02-29 Thread mouleeshwaran . g
Hello Charlie,

Here is a summary of actions i tried based on the postings posted by you, 
Thorsen and Luc.

1. Used morbo and mod_proxy and verified changes to controllers and 
templates are respected without restarting morbo

morbo -w lib/ -w templates/ script/my_app -l "http://*:2999";

There is no change in mod_proxy configuration i have posted earlier

2. Used plackup and mod_proxy and verified changes to controllers and 
templates are respected without killing and restarting plackup

plackup -R templates/ ./script/my_app -l localhost:2999




*Here are my questions*

1. What is the best practice to deploy a mojolicious app to production? 
should i stick to morbo or plackup or hypnotoad? 

2. How do we stop these middleware(morbo/plackup/hypnotoad) instead of 
killing them using ctrl +C in development mode? Should i just create a 
shell script to kill the process using pid? 

3. I undertstand from one of the earlier posts, using mod_perl may not be a 
good idea. Is it ok to use mod_proxy?

4. Even though the requirement is to deploy our app on apache, would it be 
possible to create a webserver neutral deployment? I have tried going 
through psgi materials but i was stuck with the same routing issue i posted 
earlier.

Any help on this would be appreciated.



On Saturday, February 27, 2016 at 8:59:09 PM UTC+5:30, Charlie Brady wrote:
>
>
> On Fri, 26 Feb 2016, moulees...@jothisoftware.com  wrote: 
>
> > just add a look of above link (mod_proxy). How does the virtual host 
> config 
> > will get addressed to the project directory (Mojo App) ? 
>
> You need to run the mojo app on a different port  (e.g. by using 
> hypnotoad). Then you configure mod_proxy to proxy the virtual host to 
> localhost:. 
>
> The mod_proxy configuration doesn't need to know anything about the 
> project directory - just what port () the application is bound to. 
>
> Read the docs that Luc provided a link to. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Re: Hosting Mojolicious project in web Server

2016-02-28 Thread mouleeshwaran . g
Thanks a lot Charlie. Now it is working fine. 
And i also wanted to know is this the recommended way of deploying the 
application in real time?  Do i have to run the Built-In 
server(Daemon/hypnotoad) each and every time? 

On Saturday, February 27, 2016 at 8:59:09 PM UTC+5:30, Charlie Brady wrote:
>
>
> On Fri, 26 Feb 2016, moulees...@jothisoftware.com  wrote: 
>
> > just add a look of above link (mod_proxy). How does the virtual host 
> config 
> > will get addressed to the project directory (Mojo App) ? 
>
> You need to run the mojo app on a different port  (e.g. by using 
> hypnotoad). Then you configure mod_proxy to proxy the virtual host to 
> localhost:. 
>
> The mod_proxy configuration doesn't need to know anything about the 
> project directory - just what port () the application is bound to. 
>
> Read the docs that Luc provided a link to. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Re: Hosting Mojolicious project in web Server

2016-02-26 Thread mouleeshwaran . g
just add a look of above link (mod_proxy). How does the virtual host config 
will get addressed to the project directory (Mojo App) ?

On Friday, February 26, 2016 at 2:09:13 PM UTC+5:30, Jan Henning Thorsen 
wrote:
>
> Why are you using mod_perl? Can't you use mod_proxy?
>
>
> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#Apache-mod_proxy
>
>
> On Friday, February 26, 2016 at 9:32:05 AM UTC+1, Alex Alex wrote:
>>
>> Using apache + mod_perl with mojolicious isn't very wise decision.
>>
>> I suggest iptables + hypnotoad or nginx + hypnotoad . Both of them are 
>> much simpler and faster
>>
>>
>>
>>
>>
>> Hello Thorsen, 
>>
>> Thanks for the reply, Tried deploying the mojolicious application with 
>> Apache using 'mod_perl' which is working, still having few issues like 
>> routing and timeouts
>>
>>
>> 
>>
>> when its opened in a new tab or on refreshing the page, sometime its 
>> works. 
>>
>>
>> Am looking forward for the solution, thanks in advance.
>>
>>
>>
>>
>>
>> My* Virtual Host Configuration *looks something like this :-
>>
>>
>> 
>> DocumentRoot /path/app
>> SetEnv APPLICATION_ENV 'development' 
>> 
>> Order deny,allow
>> Allow from all
>> 
>> 
>> $ENV{PLACK_ENV} = 'production';
>> $ENV{MOJO_HOME} = '/path/app';
>> $ENV{MOJO_MODE} = 'deployment';
>> 
>> 
>> SetHandler perl-script
>> PerlResponseHandler Plack::Handler::Apache2
>> PerlSetVar psgi_app /path/app
>> AllowOverride None
>> # Allow open access:
>>
>> Require all granted
>>
>> 
>>
>> 
>>
>>
>>
>> On Monday, February 22, 2016 at 9:24:15 PM UTC+5:30, Jan Henning Thorsen 
>> wrote: 
>>>
>>> Hi,  
>>>
>>> Have you looked at any of these resources:
>>>
>>> * 
>>> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#DEPLOYMENT
>>> * 
>>> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#Apache-mod_proxy
>>> * 
>>> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#Making-your-application-installable
>>>
>>> You might be interested in these projects as well:
>>>
>>> * https://metacpan.org/pod/Carmel
>>> * https://metacpan.org/pod/Carton
>>>
>>> Carmel is the successor of Carton, which is a tool for bundling 
>>> dependencies with your application.
>>>
>>>
>>> Best regards,
>>> Jan Henning Thorsen
>>>
>>>
>>> On Monday, February 22, 2016 at 2:44:57 PM UTC+1, 
>>> moulees...@jothisoftware.com wrote: 

  Hello everyone, i had completely developed an application in perl with 
 mojolicious framework. since i am new to perl and its frameworks i don't 
 know how to *upload the project to the server* or* hosting the project 
 online*. if it is possible to host the project with* apache server*. 
 well and good , please let me know how to do it! and also tell me know the 
 *other 
 ways of deploying* the project online. Thanks in advanced.

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mojolicious" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mojolicious...@googlegroups.com .
>> To post to this group, send email to mojol...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/mojolicious.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Re: Hosting Mojolicious project in web Server

2016-02-26 Thread mouleeshwaran . g
well ready to take up the pain, since i have to stick to the requirements. 
so kindly let me know  how to achieve hosting the mojolicious application 
with apache  + mod_perl / mod_proxy


On Friday, February 26, 2016 at 2:07:14 PM UTC+5:30, Luc Didry wrote:
>
> vendredi 26 février 2016, 10:32:00 CET s...@alexbyk.com  
> wrote: 
> > Using apache + mod_perl with mojolicious isn't very wise decision. 
> > 
> > I suggest iptables + hypnotoad or nginx + hypnotoad . Both of them are 
> > much simpler and faster 
>
> Apache + mod_proxy can do the job too (but websockets needs an other 
> module, 
> and configuration is a pain). 
> -- 
> Luc 
> http://www.fiat-tux.fr/ 
> Internet n'est pas compliqué, Internet est ce que vous en faites. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Re: Hosting Mojolicious project in web Server

2016-02-26 Thread mouleeshwaran . g
Thanks for the reply Alex.
I had already tried with Hypnotoad, it is working fine, but the thing is my 
requirement is to do with Apache server only. so kindly help me in sorting 
out the above mentioned issues. 

On Friday, February 26, 2016 at 2:02:05 PM UTC+5:30, Alex Alex wrote:
>
> Using apache + mod_perl with mojolicious isn't very wise decision.
>
> I suggest iptables + hypnotoad or nginx + hypnotoad . Both of them are 
> much simpler and faster
>
>
>
>
>
> Hello Thorsen, 
>
> Thanks for the reply, Tried deploying the mojolicious application with 
> Apache using 'mod_perl' which is working, still having few issues like 
> routing and timeouts
>
>
> 
>
> when its opened in a new tab or on refreshing the page, sometime its 
> works. 
>
>
> Am looking forward for the solution, thanks in advance.
>
>
>
>
>
> My* Virtual Host Configuration *looks something like this :-
>
>
> 
> DocumentRoot /path/app
> SetEnv APPLICATION_ENV 'development' 
> 
> Order deny,allow
> Allow from all
> 
> 
> $ENV{PLACK_ENV} = 'production';
> $ENV{MOJO_HOME} = '/path/app';
> $ENV{MOJO_MODE} = 'deployment';
> 
> 
> SetHandler perl-script
> PerlResponseHandler Plack::Handler::Apache2
> PerlSetVar psgi_app /path/app
> AllowOverride None
> # Allow open access:
>
> Require all granted
>
> 
>
> 
>
>
>
> On Monday, February 22, 2016 at 9:24:15 PM UTC+5:30, Jan Henning Thorsen 
> wrote: 
>>
>> Hi,  
>>
>> Have you looked at any of these resources:
>>
>> * 
>> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#DEPLOYMENT
>> * 
>> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#Apache-mod_proxy
>> * 
>> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#Making-your-application-installable
>>
>> You might be interested in these projects as well:
>>
>> * https://metacpan.org/pod/Carmel
>> * https://metacpan.org/pod/Carton
>>
>> Carmel is the successor of Carton, which is a tool for bundling 
>> dependencies with your application.
>>
>>
>> Best regards,
>> Jan Henning Thorsen
>>
>>
>> On Monday, February 22, 2016 at 2:44:57 PM UTC+1, 
>> moulees...@jothisoftware.com wrote: 
>>>
>>>  Hello everyone, i had completely developed an application in perl with 
>>> mojolicious framework. since i am new to perl and its frameworks i don't 
>>> know how to *upload the project to the server* or* hosting the project 
>>> online*. if it is possible to host the project with* apache server*. 
>>> well and good , please let me know how to do it! and also tell me know the 
>>> *other 
>>> ways of deploying* the project online. Thanks in advanced.
>>>
>> -- 
> You received this message because you are subscribed to the Google Groups 
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to mojolicious...@googlegroups.com .
> To post to this group, send email to mojol...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Hosting Mojolicious project in web Server

2016-02-26 Thread mouleeshwaran . g
Hello Thorsen,

Thanks for the reply, Tried deploying the mojolicious application with 
Apache using 'mod_perl' which is working, still having few issues like 
routing and timeouts



when its opened in a new tab or on refreshing the page, sometime its works. 


Am looking forward for the solution, thanks in advance.





My* Virtual Host Configuration *looks something like this :-



DocumentRoot /path/app
SetEnv APPLICATION_ENV 'development' 

Order deny,allow
Allow from all


$ENV{PLACK_ENV} = 'production';
$ENV{MOJO_HOME} = '/path/app';
$ENV{MOJO_MODE} = 'deployment';


SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /path/app
AllowOverride None
# Allow open access:

Require all granted







On Monday, February 22, 2016 at 9:24:15 PM UTC+5:30, Jan Henning Thorsen 
wrote:
>
> Hi, 
>
> Have you looked at any of these resources:
>
> * 
> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#DEPLOYMENT
> * 
> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#Apache-mod_proxy
> * 
> https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#Making-your-application-installable
>
> You might be interested in these projects as well:
>
> * https://metacpan.org/pod/Carmel
> * https://metacpan.org/pod/Carton
>
> Carmel is the successor of Carton, which is a tool for bundling 
> dependencies with your application.
>
>
> Best regards,
> Jan Henning Thorsen
>
>
> On Monday, February 22, 2016 at 2:44:57 PM UTC+1, 
> moulees...@jothisoftware.com  wrote:
>>
>>  Hello everyone, i had completely developed an application in perl with 
>> mojolicious framework. since i am new to perl and its frameworks i don't 
>> know how to *upload the project to the server* or* hosting the project 
>> online*. if it is possible to host the project with* apache server*. 
>> well and good , please let me know how to do it! and also tell me know the 
>> *other 
>> ways of deploying* the project online. Thanks in advanced.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Hosting Mojolicious project in web Server

2016-02-26 Thread mouleeshwaran . g


On Monday, February 22, 2016 at 7:14:57 PM UTC+5:30, 
moulees...@jothisoftware.com wrote:
>
>  Hello everyone, i had completely developed an application in perl with 
> mojolicious framework. since i am new to perl and its frameworks i don't 
> know how to *upload the project to the server* or* hosting the project 
> online*. if it is possible to host the project with* apache server*. well 
> and good , please let me know how to do it! and also tell me know the *other 
> ways of deploying* the project online. Thanks in advanced.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Hosting Mojolicious project in web Server

2016-02-22 Thread mouleeshwaran . g
 Hello everyone, i had completely developed an application in perl with 
mojolicious framework. since i am new to perl and its frameworks i don't 
know how to *upload the project to the server* or* hosting the project 
online*. if it is possible to host the project with* apache server*. well 
and good , please let me know how to do it! and also tell me know the *other 
ways of deploying* the project online. Thanks in advanced.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.