[Framework-Team] Re: Plone 4 - holidays are over :)

2010-01-06 Thread Israel Saeta PĂ©rez

Hanno Schlichting wrote:

1.8 (2008-04-05)

Added console command to the instance script, which is equivalent to
fg but does not implicitly turn on debug mode but respects the
zope.conf setting. [hannosch]

One month later we changed it not to fork a process internally, so
this is what we've been using for supervisord configurations for
years.



I've updated 
http://plone.org/documentation/manual/developer-manual/managing-projects-with-buildout/creating-a-buildout-for-your-project

to reflect the availability of this command:


Running:

bin/instance console


is equivalent to bin/instance fg, but does not implicitly turn on debug 
mode but respects the debug-mode setting in buildout.cfg. This can be 
useful to run Zope in non-development mode with daemon-control programs 
like supervisord.



I hope it's ok. :)

-- israel


___
Framework-Team mailing list
Framework-Team@lists.plone.org
http://lists.plone.org/mailman/listinfo/framework-team


Re: [Framework-Team] Re: Plone 4 - holidays are over :)

2010-01-06 Thread Laurence Rowe
2010/1/6 Alex Clark acl...@aclark.net:
 On 2010-01-05, Martin Aspeli optilude+li...@gmail.com wrote:
 Hanno Schlichting wrote:
 A quick poll in #plone-framework showed that myself and Messrs. Glick and 
 Clark had never heard of bin/instance console. We need to document the 
 crap out of that.

 Eh, how do you guys start an instance without the forced debug mode of
 fg? You don't use start for that, do you?

 I guess I never do that. :)

 Since when have we had that?

 Since we use buildout or to be more precise, April 2008. Let me quote
 the PyPi page:

 1.8 (2008-04-05)

 Added console command to the instance script, which is equivalent to
 fg but does not implicitly turn on debug mode but respects the
 zope.conf setting. [hannosch]

 One month later we changed it not to fork a process internally, so
 this is what we've been using for supervisord configurations for
 years.

 Heh, good. :) I've been using a lower level script (run.py or something,
 deep inside Zope) in supervisord that I guess does the same thing.

 So are they the same or not? If so, then we can stop feeling like
 idiots for missing 'bin/instance console' and continuing to use runzope ;-)
 I'm getting the impression 'bin/instance console' is just a convenience.

Since plone.recipe.zope2instance puts the egg paths in the instance
zope.conf, parts/instance/bin/runzope should be equivalent I think.

Laurence

___
Framework-Team mailing list
Framework-Team@lists.plone.org
http://lists.plone.org/mailman/listinfo/framework-team


Re: [Framework-Team] Re: Plone 4 - holidays are over :)

2010-01-06 Thread Hanno Schlichting
On Wed, Jan 6, 2010 at 1:52 PM, Laurence Rowe l...@lrowe.co.uk wrote:
 2010/1/6 Alex Clark acl...@aclark.net:
 So are they the same or not? If so, then we can stop feeling like
 idiots for missing 'bin/instance console' and continuing to use runzope ;-)
 I'm getting the impression 'bin/instance console' is just a convenience.

In the end both of them prepare an OS environment and execute
Zope2/Startup/run.py.

The main difference is that bin/instance is easier to type and is a
Python script. sh parts/instance/runzope is a Unix shell script, so
it's not available on all platforms. And in the zope2instance version
used for Plone 4 runzope does no longer exist.

 Since plone.recipe.zope2instance puts the egg paths in the instance
 zope.conf, parts/instance/bin/runzope should be equivalent I think.

Not quite. The recipe used to construct a Python path and put it into
runzope ;-) But luckily we don't have to do that anymore, as buildout
takes care of all that script generation stuff and constructing the
right sys.path for us.

Hanno

___
Framework-Team mailing list
Framework-Team@lists.plone.org
http://lists.plone.org/mailman/listinfo/framework-team


[Framework-Team] Re: Plone 4 - holidays are over :)

2010-01-05 Thread Alex Clark
On 2010-01-05, Martin Aspeli optilude+li...@gmail.com wrote:
 Hanno Schlichting wrote:
 A quick poll in #plone-framework showed that myself and Messrs. Glick and 
 Clark had never heard of bin/instance console. We need to document the crap 
 out of that.

 Eh, how do you guys start an instance without the forced debug mode of
 fg? You don't use start for that, do you?

 I guess I never do that. :)

 Since when have we had that?

 Since we use buildout or to be more precise, April 2008. Let me quote
 the PyPi page:

 1.8 (2008-04-05)

 Added console command to the instance script, which is equivalent to
 fg but does not implicitly turn on debug mode but respects the
 zope.conf setting. [hannosch]

 One month later we changed it not to fork a process internally, so
 this is what we've been using for supervisord configurations for
 years.

 Heh, good. :) I've been using a lower level script (run.py or something, 
 deep inside Zope) in supervisord that I guess does the same thing.

So are they the same or not? If so, then we can stop feeling like 
idiots for missing 'bin/instance console' and continuing to use runzope ;-)
I'm getting the impression 'bin/instance console' is just a convenience.

 Martin



___
Framework-Team mailing list
Framework-Team@lists.plone.org
http://lists.plone.org/mailman/listinfo/framework-team


[Framework-Team] Re: Plone 4 - holidays are over :)

2010-01-04 Thread Martin Aspeli

Eric Steele wrote:


Personally I disagree with some of the choices mentioned in the PLIP
(like shipping the unmaintained Clouseau, using eggtractor where
buildout covers the same use-case today, turning on debug-mode in
zope.conf, which should only be done via bin/instance fg vs.
bin/instance console)


A quick poll in #plone-framework showed that myself and Messrs. Glick and Clark 
had never heard of bin/instance console. We need to document the crap out of 
that.


You mean that wasn't a typo?

/me is astonished. :)

Since when have we had that?

Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


___
Framework-Team mailing list
Framework-Team@lists.plone.org
http://lists.plone.org/mailman/listinfo/framework-team


[Framework-Team] Re: Plone 4 - holidays are over :)

2010-01-04 Thread Hanno Schlichting
 A quick poll in #plone-framework showed that myself and Messrs. Glick and 
 Clark had never heard of bin/instance console. We need to document the crap 
 out of that.

Eh, how do you guys start an instance without the forced debug mode of
fg? You don't use start for that, do you?

 Since when have we had that?

Since we use buildout or to be more precise, April 2008. Let me quote
the PyPi page:

1.8 (2008-04-05)

Added console command to the instance script, which is equivalent to
fg but does not implicitly turn on debug mode but respects the
zope.conf setting. [hannosch]

One month later we changed it not to fork a process internally, so
this is what we've been using for supervisord configurations for
years.

Hanno

___
Framework-Team mailing list
Framework-Team@lists.plone.org
http://lists.plone.org/mailman/listinfo/framework-team


[Framework-Team] Re: Plone 4 - holidays are over :)

2010-01-04 Thread Martin Aspeli

Hanno Schlichting wrote:

A quick poll in #plone-framework showed that myself and Messrs. Glick and Clark 
had never heard of bin/instance console. We need to document the crap out of 
that.


Eh, how do you guys start an instance without the forced debug mode of
fg? You don't use start for that, do you?


I guess I never do that. :)


Since when have we had that?


Since we use buildout or to be more precise, April 2008. Let me quote
the PyPi page:

1.8 (2008-04-05)

Added console command to the instance script, which is equivalent to
fg but does not implicitly turn on debug mode but respects the
zope.conf setting. [hannosch]

One month later we changed it not to fork a process internally, so
this is what we've been using for supervisord configurations for
years.


Heh, good. :) I've been using a lower level script (run.py or something, 
deep inside Zope) in supervisord that I guess does the same thing.


Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


___
Framework-Team mailing list
Framework-Team@lists.plone.org
http://lists.plone.org/mailman/listinfo/framework-team


Re: [Framework-Team] Re: Plone 4 - holidays are over :)

2010-01-04 Thread David Glick
David Glick wrote: 
Man, I even vaguely remember seeing that changelog entry go by, but 
completely forgot about it.  We've been using 
parts/instance/bin/runzope with supervisord; this is better.

David
I worded that ambiguously.  I meant that using bin/instance console is 
better.

David

--
David Glick
Web Developer
Groundwire
206.286.1235x32
davidgl...@groundwire.org
http://groundwire.org

ONE/Northwest is now Groundwire!

___
Framework-Team mailing list
Framework-Team@lists.plone.org
http://lists.plone.org/mailman/listinfo/framework-team