Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-23 Thread Andrew

I've ended up using Plackup to start the catalyst app's psgi script (still
via fast cgi),
and I'm using -r to indicate it should watch for changes, and reload the
server when changes are detected.

It does this fine, as long as my commandline terminal is still open.
The moment I close it, the server continues to run, yet any watching for
changes, killing, and restarting no longer happens (as far as I can tell).

Is there any way to get Plack's scripts that watch and reload (i.e.
Restarter.pm, etc), to continue to run after I close OSX's terminal window /
end the SSH session?


Many thanks for any insights offered,

Yours,
Andrew.


___
List: Catalyst@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/


Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-23 Thread Andrew
I didn't know about screen - so thanks! =)
Sounds like it could be a workaround!

Any other ways?


- Original Message -
From: "Trevor Leffler" 
To: "The elegant MVC web framework" 
Sent: Friday, October 23, 2015 4:28 PM
Subject: Re: [Catalyst] Keep Plack -r working when commandline closed...?


What about wrapping your shell session with screen?

$ man screen

--Trevor

On 10/23/2015 08:21 AM, Andrew wrote:
>
> I've ended up using Plackup to start the catalyst app's psgi script (still
> via fast cgi),
> and I'm using -r to indicate it should watch for changes, and reload the
> server when changes are detected.
>
> It does this fine, as long as my commandline terminal is still open.
> The moment I close it, the server continues to run, yet any watching for
> changes, killing, and restarting no longer happens (as far as I can tell).
>
> Is there any way to get Plack's scripts that watch and reload (i.e.
> Restarter.pm, etc), to continue to run after I close OSX's terminal window
/
> end the SSH session?
>
>
> Many thanks for any insights offered,
>
> Yours,
> Andrew.
>
>
> ___
> List: Catalyst@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/
>

___
List: Catalyst@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/


___
List: Catalyst@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/


Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-23 Thread Andrew
Turns out it's super easy to run it in the background, =).

You just add "&" to the end of the commandline, =D.

^_^ Am learning these little server tricks, ;-).

[Tweeted Tatsuhiko Miyagawa of Plack fame, who was kind enough to promptly
respond, with this little gem, =D. Yay!]

Yours,
Andrew.


- Original Message -
From: "Trevor Leffler" 
To: "The elegant MVC web framework" 
Sent: Friday, October 23, 2015 4:28 PM
Subject: Re: [Catalyst] Keep Plack -r working when commandline closed...?


What about wrapping your shell session with screen?

$ man screen

--Trevor

On 10/23/2015 08:21 AM, Andrew wrote:
>
> I've ended up using Plackup to start the catalyst app's psgi script (still
> via fast cgi),
> and I'm using -r to indicate it should watch for changes, and reload the
> server when changes are detected.
>
> It does this fine, as long as my commandline terminal is still open.
> The moment I close it, the server continues to run, yet any watching for
> changes, killing, and restarting no longer happens (as far as I can tell).
>
> Is there any way to get Plack's scripts that watch and reload (i.e.
> Restarter.pm, etc), to continue to run after I close OSX's terminal window
/
> end the SSH session?
>
>
> Many thanks for any insights offered,
>
> Yours,
> Andrew.
>
>
> ___
> List: Catalyst@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/
>

___
List: Catalyst@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/


___
List: Catalyst@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/


Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-23 Thread Andrew

Why is it better to use these over using an "&"?

Or are you simply recommending them generally, due to their usefulness all 
round?

Yours,
Andrew.

  - Original Message - 
  From: Kieren Diment 
  To: The elegant MVC web framework 
  Sent: Friday, October 23, 2015 10:48 PM
  Subject: Re: [Catalyst] Keep Plack -r working when commandline closed...?


  Tmux is generally newer and easier to use than screen, highly recommended.



  On Sat, Oct 24, 2015 at 7:41 AM, Len Jaffe  wrote:

I'd still consider using screen or tmux...


On Fri, Oct 23, 2015 at 1:48 PM, Andrew  
wrote:

  Turns out it's super easy to run it in the background, =).

  You just add "&" to the end of the commandline, =D.

  ^_^ Am learning these little server tricks, ;-).

  [Tweeted Tatsuhiko Miyagawa of Plack fame, who was kind enough to promptly
  respond, with this little gem, =D. Yay!]

  Yours,
  Andrew.


  - Original Message -
  From: "Trevor Leffler" 
  To: "The elegant MVC web framework" 
  Sent: Friday, October 23, 2015 4:28 PM
  Subject: Re: [Catalyst] Keep Plack -r working when commandline closed...?



  What about wrapping your shell session with screen?

  $ man screen

  --Trevor

  On 10/23/2015 08:21 AM, Andrew wrote:
  >
  > I've ended up using Plackup to start the catalyst app's psgi script 
(still
  > via fast cgi),
  > and I'm using -r to indicate it should watch for changes, and reload the
  > server when changes are detected.
  >
  > It does this fine, as long as my commandline terminal is still open.
  > The moment I close it, the server continues to run, yet any watching for
  > changes, killing, and restarting no longer happens (as far as I can 
tell).
  >
  > Is there any way to get Plack's scripts that watch and reload (i.e.
  > Restarter.pm, etc), to continue to run after I close OSX's terminal 
window
  /
  > end the SSH session?
  >
  >
  > Many thanks for any insights offered,
  >
  > Yours,
  > Andrew.
  >
  >
  > ___
  > List: Catalyst@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/
  >

  ___
  List: Catalyst@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/


  ___
  List: Catalyst@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/






-- 

Len Jaffe - Information Technology Smoke Jumper - lenja...@jaffesystems.com 
614-404-4214@LenJaffe  www.lenjaffe.com

Host of Code Jam Columbus  - @CodeJamCMH
Curator of Advent Planet - An Aggregation of Online Advent Calendars.



___
List: Catalyst@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/






--


  ___
  List: Catalyst@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/

___
List: Catalyst@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/


Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-23 Thread Kieren Diment
Tmux is the poor man's deployment pathway ;).  I use it to keep long
running jobs going between logins a lot too, as well as for having an
editor in the right place from where I last left off.  All round a primo
useful tool.  Also handy for persistent IRC connections etc.

On Sat, Oct 24, 2015 at 3:24 PM, Andrew 
wrote:

> A further search online,
> throws up that screen and tmux can be useful if the app you want to run in
> the background needs input now and again.
>
>
> - Original Message -
> *From:* Andrew 
> *To:* The elegant MVC web framework 
> *Sent:* Saturday, October 24, 2015 5:06 AM
> *Subject:* Re: [Catalyst] Keep Plack -r working when commandline
> closed...?
>
>
> Why is it better to use these over using an "&"?
>
> Or are you simply recommending them generally, due to their usefulness all
> round?
>
> Yours,
> Andrew.
>
>
> - Original Message -
> *From:* Kieren Diment 
> *To:* The elegant MVC web framework 
> *Sent:* Friday, October 23, 2015 10:48 PM
> *Subject:* Re: [Catalyst] Keep Plack -r working when commandline
> closed...?
>
> Tmux is generally newer and easier to use than screen, highly recommended.
>
> On Sat, Oct 24, 2015 at 7:41 AM, Len Jaffe 
> wrote:
>
>> I'd still consider using screen or tmux...
>>
>> On Fri, Oct 23, 2015 at 1:48 PM, Andrew 
>> wrote:
>>
>>> Turns out it's super easy to run it in the background, =).
>>>
>>> You just add "&" to the end of the commandline, =D.
>>>
>>> ^_^ Am learning these little server tricks, ;-).
>>>
>>> [Tweeted Tatsuhiko Miyagawa of Plack fame, who was kind enough to
>>> promptly
>>> respond, with this little gem, =D. Yay!]
>>>
>>> Yours,
>>> Andrew.
>>>
>>>
>>> - Original Message -
>>> From: "Trevor Leffler" 
>>> To: "The elegant MVC web framework" 
>>> Sent: Friday, October 23, 2015 4:28 PM
>>> Subject: Re: [Catalyst] Keep Plack -r working when commandline closed...?
>>>
>>>
>>> What about wrapping your shell session with screen?
>>>
>>> $ man screen
>>>
>>> --Trevor
>>>
>>> On 10/23/2015 08:21 AM, Andrew wrote:
>>> >
>>> > I've ended up using Plackup to start the catalyst app's psgi script
>>> (still
>>> > via fast cgi),
>>> > and I'm using -r to indicate it should watch for changes, and reload
>>> the
>>> > server when changes are detected.
>>> >
>>> > It does this fine, as long as my commandline terminal is still open.
>>> > The moment I close it, the server continues to run, yet any watching
>>> for
>>> > changes, killing, and restarting no longer happens (as far as I can
>>> tell).
>>> >
>>> > Is there any way to get Plack's scripts that watch and reload (i.e.
>>> > Restarter.pm, etc), to continue to run after I close OSX's terminal
>>> window
>>> /
>>> > end the SSH session?
>>> >
>>> >
>>> > Many thanks for any insights offered,
>>> >
>>> > Yours,
>>> > Andrew.
>>> >
>>> >
>>> > ___
>>> > List: Catalyst@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/
>>> >
>>>
>>> ___
>>> List: Catalyst@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/
>>>
>>>
>>> ___
>>> List: Catalyst@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/
>>>
>>
>>
>>
>> --
>> Len Jaffe - Information Technology Smoke Jumper -
>> lenja...@jaffesystems.com
>> 614-404-4214@LenJaffe 
>> www.lenjaffe.com
>> Host of Code Jam Columbus   -
>> @CodeJamCMH 
>> Curator of Advent Planet  - An
>> Aggregation of Online Advent Calendars.
>>
>>
>> ___
>> List: Catalyst@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/
>>
>>
> --
>
> ___
> List: Catalyst@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: 

Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-23 Thread Len Jaffe
I'd still consider using screen or tmux...

On Fri, Oct 23, 2015 at 1:48 PM, Andrew 
wrote:

> Turns out it's super easy to run it in the background, =).
>
> You just add "&" to the end of the commandline, =D.
>
> ^_^ Am learning these little server tricks, ;-).
>
> [Tweeted Tatsuhiko Miyagawa of Plack fame, who was kind enough to promptly
> respond, with this little gem, =D. Yay!]
>
> Yours,
> Andrew.
>
>
> - Original Message -
> From: "Trevor Leffler" 
> To: "The elegant MVC web framework" 
> Sent: Friday, October 23, 2015 4:28 PM
> Subject: Re: [Catalyst] Keep Plack -r working when commandline closed...?
>
>
> What about wrapping your shell session with screen?
>
> $ man screen
>
> --Trevor
>
> On 10/23/2015 08:21 AM, Andrew wrote:
> >
> > I've ended up using Plackup to start the catalyst app's psgi script
> (still
> > via fast cgi),
> > and I'm using -r to indicate it should watch for changes, and reload the
> > server when changes are detected.
> >
> > It does this fine, as long as my commandline terminal is still open.
> > The moment I close it, the server continues to run, yet any watching for
> > changes, killing, and restarting no longer happens (as far as I can
> tell).
> >
> > Is there any way to get Plack's scripts that watch and reload (i.e.
> > Restarter.pm, etc), to continue to run after I close OSX's terminal
> window
> /
> > end the SSH session?
> >
> >
> > Many thanks for any insights offered,
> >
> > Yours,
> > Andrew.
> >
> >
> > ___
> > List: Catalyst@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/
> >
>
> ___
> List: Catalyst@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/
>
>
> ___
> List: Catalyst@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/
>



-- 
Len Jaffe - Information Technology Smoke Jumper - lenja...@jaffesystems.com
614-404-4214@LenJaffe 
www.lenjaffe.com
Host of Code Jam Columbus   -
@CodeJamCMH 
Curator of Advent Planet  - An
Aggregation of Online Advent Calendars.
___
List: Catalyst@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/


Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-23 Thread Trevor Leffler

What about wrapping your shell session with screen?

$ man screen

--Trevor

On 10/23/2015 08:21 AM, Andrew wrote:


I've ended up using Plackup to start the catalyst app's psgi script (still
via fast cgi),
and I'm using -r to indicate it should watch for changes, and reload the
server when changes are detected.

It does this fine, as long as my commandline terminal is still open.
The moment I close it, the server continues to run, yet any watching for
changes, killing, and restarting no longer happens (as far as I can tell).

Is there any way to get Plack's scripts that watch and reload (i.e.
Restarter.pm, etc), to continue to run after I close OSX's terminal window /
end the SSH session?


Many thanks for any insights offered,

Yours,
Andrew.


___
List: Catalyst@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/



___
List: Catalyst@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/


Re: [Catalyst] Keep Plack -r working when commandline closed...?

2015-10-23 Thread Kieren Diment
Tmux is generally newer and easier to use than screen, highly recommended.

On Sat, Oct 24, 2015 at 7:41 AM, Len Jaffe 
wrote:

> I'd still consider using screen or tmux...
>
> On Fri, Oct 23, 2015 at 1:48 PM, Andrew 
> wrote:
>
>> Turns out it's super easy to run it in the background, =).
>>
>> You just add "&" to the end of the commandline, =D.
>>
>> ^_^ Am learning these little server tricks, ;-).
>>
>> [Tweeted Tatsuhiko Miyagawa of Plack fame, who was kind enough to promptly
>> respond, with this little gem, =D. Yay!]
>>
>> Yours,
>> Andrew.
>>
>>
>> - Original Message -
>> From: "Trevor Leffler" 
>> To: "The elegant MVC web framework" 
>> Sent: Friday, October 23, 2015 4:28 PM
>> Subject: Re: [Catalyst] Keep Plack -r working when commandline closed...?
>>
>>
>> What about wrapping your shell session with screen?
>>
>> $ man screen
>>
>> --Trevor
>>
>> On 10/23/2015 08:21 AM, Andrew wrote:
>> >
>> > I've ended up using Plackup to start the catalyst app's psgi script
>> (still
>> > via fast cgi),
>> > and I'm using -r to indicate it should watch for changes, and reload the
>> > server when changes are detected.
>> >
>> > It does this fine, as long as my commandline terminal is still open.
>> > The moment I close it, the server continues to run, yet any watching for
>> > changes, killing, and restarting no longer happens (as far as I can
>> tell).
>> >
>> > Is there any way to get Plack's scripts that watch and reload (i.e.
>> > Restarter.pm, etc), to continue to run after I close OSX's terminal
>> window
>> /
>> > end the SSH session?
>> >
>> >
>> > Many thanks for any insights offered,
>> >
>> > Yours,
>> > Andrew.
>> >
>> >
>> > ___
>> > List: Catalyst@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/
>> >
>>
>> ___
>> List: Catalyst@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/
>>
>>
>> ___
>> List: Catalyst@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/
>>
>
>
>
> --
> Len Jaffe - Information Technology Smoke Jumper -
> lenja...@jaffesystems.com
> 614-404-4214@LenJaffe 
> www.lenjaffe.com
> Host of Code Jam Columbus   -
> @CodeJamCMH 
> Curator of Advent Planet  - An
> Aggregation of Online Advent Calendars.
>
>
> ___
> List: Catalyst@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/
>
>
___
List: Catalyst@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/