|
List Info
Thread: pylons without paste ?
|
|
| pylons without paste ? |

|
2006-02-16 23:33:14 |
Hi,
Is it possible to start a pylons server without using paste
? i.e
similar to how myghty server works ?
Paste is great but I really want a working reload for
development. The
current pylons paste server with --reload consistently hangs
when an
external file is changed. As discussed before on this list,
this is a
known problem so I just wanted to find a work around in the
mean time.
Thanks
Huy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss googlegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
|
|
| pylons without paste ? |

|
2006-02-18 20:58:22 |
On Feb 16, 2006, at 3:33 PM, huydo wrote:
> Is it possible to start a pylons server without using
paste ? i.e
> similar to how myghty server works ?
>
> Paste is great but I really want a working reload for
development. The
> current pylons paste server with --reload consistently
hangs when an
> external file is changed. As discussed before on this
list, this is a
> known problem so I just wanted to find a work around in
the mean time.
The Pylons setup gives you a way to load your application as
a WSGI
app, however from that point, you'll need to setup and run
a WSGI
server and specify your Pylons WSGI application. The
make_app
function in your config/middleware.py is what creates the
application, and you can 'fake' the global_conf and
app_conf, by
passing two dicts with keys/values corresponding to your
development.ini file.
What server were you thinking of running the WSGI app with?
Does the
myghty server have reloading of external files that works?
HTH,
Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss googlegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
|
|
| pylons without paste ? |

|
2006-02-19 10:53:50 |
Ben Bangert wrote:
> On Feb 16, 2006, at 3:33 PM, huydo wrote:
>
>
>> Is it possible to start a pylons server without
using paste ? i.e
>> similar to how myghty server works ?
>>
>> Paste is great but I really want a working reload
for development. The
>> current pylons paste server with --reload
consistently hangs when an
>> external file is changed. As discussed before on
this list, this is a
>> known problem so I just wanted to find a work
around in the mean time.
>>
>
> The Pylons setup gives you a way to load your
application as a WSGI
> app, however from that point, you'll need to setup and
run a WSGI
> server and specify your Pylons WSGI application. The
make_app
> function in your config/middleware.py is what creates
the
> application, and you can 'fake' the global_conf and
app_conf, by
> passing two dicts with keys/values corresponding to
your
> development.ini file.
>
> What server were you thinking of running the WSGI app
with? Does the
> myghty server have reloading of external files that
works?
>
>
Yes. I used the autoreload.py from the cherrypy project
(it's just a
single file) with the
myghty.http.HTTPServerhandler.HTTPServer
and it works.
Huy
> HTH,
> Ben
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss googlegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
|
|
| pylons without paste ? |

|
2006-02-19 11:09:30 |
Ben Bangert wrote:
> On Feb 16, 2006, at 3:33 PM, huydo wrote:
>
>
>> Is it possible to start a pylons server without
using paste ? i.e
>> similar to how myghty server works ?
>>
>> Paste is great but I really want a working reload
for development. The
>> current pylons paste server with --reload
consistently hangs when an
>> external file is changed. As discussed before on
this list, this is a
>> known problem so I just wanted to find a work
around in the mean time.
>>
>
> The Pylons setup gives you a way to load your
application as a WSGI
> app, however from that point, you'll need to setup and
run a WSGI
> server and specify your Pylons WSGI application. The
make_app
> function in your config/middleware.py is what creates
the
> application, and you can 'fake' the global_conf and
app_conf, by
> passing two dicts with keys/values corresponding to
your
> development.ini file.
>
>
Man I have no idea how this would work because I'm not at
all familiar
with wsgi. I just know it's a standard which worries about
things I
shouldn't have to worry about. Can it not be setup somehow
to work with
the standard myghty httpserver for development ?
Huy
> What server were you thinking of running the WSGI app
with? Does the
> myghty server have reloading of external files that
works?
>
> HTH,
> Ben
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss googlegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
|
|
| pylons without paste ? |

|
2006-02-19 19:58:38 |
Huy Do wrote:
>>>Is it possible to start a pylons server without
using paste ? i.e
>>>similar to how myghty server works ?
>>>
>>>Paste is great but I really want a working
reload for development. The
>>>current pylons paste server with --reload
consistently hangs when an
>>>external file is changed. As discussed before on
this list, this is a
>>>known problem so I just wanted to find a work
around in the mean time.
>>>
>>
>>The Pylons setup gives you a way to load your
application as a WSGI
>>app, however from that point, you'll need to setup
and run a WSGI
>>server and specify your Pylons WSGI application. The
make_app
>>function in your config/middleware.py is what
creates the
>>application, and you can 'fake' the global_conf
and app_conf, by
>>passing two dicts with keys/values corresponding to
your
>>development.ini file.
>>
>>What server were you thinking of running the WSGI
app with? Does the
>>myghty server have reloading of external files that
works?
>>
>>
>
>
> Yes. I used the autoreload.py from the cherrypy project
(it's just a
> single file) with the
myghty.http.HTTPServerhandler.HTTPServer
> and it works.
I believe the CP autoreloader is similar to Paste's (it was
based on
Paste's, but they did some additions). I think the problem
is really
with Paste's httpserver (WSGIUtils is the same); using it
with Flup
servers I don't have a problem. If you are doing
in-process reloading
(like Aquarium's) then you can just load that up on import
and not use
Paste's reloading at all. In general, if you put a
reloader invocation
in __init__.py and don't use --reload, it should use your
reloader --
but I don't know the details of how those reloaders
interact with the
servers (in general they just do a restart, but how exactly
they signal
a restart I'm not sure).
--
Ian Bicking | ianb colorstudy.com | http://blog.ianbicking.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss googlegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
|
|
| pylons without paste ? |

|
2006-02-19 21:51:16 |
Ian Bicking wrote:
> Huy Do wrote:
>
>>>> Is it possible to start a pylons server
without using paste ? i.e
>>>> similar to how myghty server works ?
>>>>
>>>> Paste is great but I really want a working
reload for development. The
>>>> current pylons paste server with --reload
consistently hangs when an
>>>> external file is changed. As discussed
before on this list, this is a
>>>> known problem so I just wanted to find a
work around in the mean time.
>>>>
>>>>
>>> The Pylons setup gives you a way to load your
application as a WSGI
>>> app, however from that point, you'll need to
setup and run a WSGI
>>> server and specify your Pylons WSGI
application. The make_app
>>> function in your config/middleware.py is what
creates the
>>> application, and you can 'fake' the
global_conf and app_conf, by
>>> passing two dicts with keys/values
corresponding to your
>>> development.ini file.
>>>
>>> What server were you thinking of running the
WSGI app with? Does the
>>> myghty server have reloading of external files
that works?
>>>
>>>
>>>
>> Yes. I used the autoreload.py from the cherrypy
project (it's just a
>> single file) with the
myghty.http.HTTPServerhandler.HTTPServer
>> and it works.
>>
>
> I believe the CP autoreloader is similar to Paste's
(it was based on
> Paste's, but they did some additions). I think the
problem is really
> with Paste's httpserver (WSGIUtils is the same); using
it with Flup
> servers I don't have a problem. If you are doing
in-process reloading
> (like Aquarium's) then you can just load that up on
import and not use
> Paste's reloading at all. In general, if you put a
reloader invocation
> in __init__.py and don't use --reload, it should use
your reloader --
>
The only way I've been using it is to wrap the server_start
method in
autoreload.
eg.
def start_server():
http_server.serve_forever()
import autoreload
autoreload.main(start_server)
so I'm not sure how to implement this in __init__.py
thanks
Huy
> but I don't know the details of how those reloaders
interact with the
> servers (in general they just do a restart, but how
exactly they signal
> a restart I'm not sure.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss googlegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
|
|
[1-6]
|
|