[Grok-dev] Grok on a Paste
Philipp von Weitershausen
philipp at weitershausen.de
Sun Jul 15 17:17:25 EDT 2007
As some of you know, I've been playing around with running Zope on
PasteDeploy [1]. I consider this or something very similar to this the
deployment model of the future [2].
After having developed several prototypes [2], I have now written a tool
called 'zopeproject' [3] which is to Zope3 what 'grokproject' is to
Grok. The only difference is that it no longer uses an instance recipe
to deploy the Zope application, it uses PasteDeploy.
'zopeproject' actually uses all of the lessons learned from recent
'grokproject' versions, and it abstracts all re-usable parts of the
sandbox creation so that they can be reused. I've created a branch [4]
of 'grokproject' that builds on 'zopeproject'. This also means that a
Grok application created with this new 'grokproject' is deployed using
PasteDeploy. Therefore, after running grokproject, you'd no longer use
$ bin/zopectl fg
to start up the server, but
$ bin/paster serve deploy.ini
The rest should stay the same.
I would like you guys to take a look at it and test it yourself. After
checking out the branch, simply bootstrap the buildout and run it::
$ path/to/some/buildout bootstrap
$ bin/buildout
Then you'll get a bin/grokproject script that you can use like the one
you already know:
$ bin/grokproject MyGreatApp
I'm looking forward to your feedback.
[1]
http://www.zope.de/redaktion/dzug/tagung/potsdam-2007/folien/zope-on-a-paste.pdf
[2]
http://www.z3lab.org/sections/blogs/philipp-weitershausen/2007_07_07_death-to-instances
[3] http://cheeseshop.python.org/pypi/zopeproject
[4] svn://svn.zope.org/repos/main/grokproject/branches/use-zopeproject
--
http://worldcookery.com -- Professional Zope documentation and training
More information about the Grok-dev
mailing list