On Apr 20, 3:30 pm, Ian Bicking <[EMAIL PROTECTED]> wrote:
> Chas Emerick wrote:
> > For various reasons, I need to be able to bring up and tear down
> > Pylons apps from an already-running Python process. I took a look at
> > what pastescript does in the background when one executes a `paster
> > serve ...' command on the console, and I'd certainly like to find a
> > way to hook into that mechanism without attempting to simulate the
> > environment that paster gets from python on the commend line.
>
> > I seem to remember seeing a recipe for doing just that some months
> > ago, but I can't seem to find it anymore. I'd appreciate any pointers
> > to that resource, and/or any direct assistance anyone might provide
> > otherwise.
>
> You might find this example
> useful:http://svn.pythonpaste.org/Paste/apps/HTConsole/trunk/htconsole/comma...
Well, that's certainly a start in terms of simulating the initial
runtime environment when calling paster from the command line. I can
certainly build off of that if necessary.
However, I remember seeing something floating around that was
essentially:
> easy_paster_module.startapp("/path/to/production.ini", daemon=False,
> log="/path/to/logfile.log")
I'm hoping I can be lazy. :-)
Chas Emerick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---