[Catalyst] how to set up $HOME or $ROOT to start myapp_server.pl via init.d script?

Lindolfo "Lorn" Rodrigues lorn.br at gmail.com
Mon Jul 20 16:05:54 GMT 2009


Ops, sent to fast

Of couse you will put your path in path_to, i copy this from TTSite :)

On Mon, Jul 20, 2009 at 1:00 PM, Lindolfo "Lorn" Rodrigues <lorn.br@
gmail.com> wrote:

> Try to add this in your view:
>
>
> __PACKAGE__->config({
>     INCLUDE_PATH =3D> [
>         MyApp->path_to( 'root', 'src' ),
>         MyApp->path_to( 'root', 'lib' )
>     ],
>
>
> On Mon, Jul 20, 2009 at 10:40 AM, Christoph Metz <mail-lao at web.de> wrote:
>
>> Hey guys,
>>
>> i want to deploy my c-app by using the dev-server myapp_server.pl. while
>> the development i went into the dir myapp and typed
>> script/myapp_server.pl -r -d
>> so far, so good, but now i want to start this server via an init.d
>> script under open-suse 9.2, so i wrote the script by using the skeleton.
>> but now my problem, if i start the dev-server from out of an other path
>> like "/" or try to start the server with the abs path
>> /var/www/myapp/myapp_server.pl, the server starts, but there a errors on
>> much... like template.tt2 could not be found and so on...
>>
>> so, where do i have to set a "HOME" oder "PATH" var, so that i can run
>> the dev server from any fs-point?
>>
>>
>> _______________________________________________
>> 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/
>>
>
>
>
> --
> --Lindolfo "Lorn" Rodrigues
> www.slackwarezine.com.br
> http://lornlab.org
> http://sao-paulo.pm.org
> use Catalyst;
>



-- =

--Lindolfo "Lorn" Rodrigues
www.slackwarezine.com.br
http://lornlab.org
http://sao-paulo.pm.org
use Catalyst;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090720/11a49=
69e/attachment.htm


More information about the Catalyst mailing list