Deployment options

43 views
Skip to first unread message

Jean-Denis Girard

unread,
Feb 27, 2014, 11:40:11 AM2/27/14
to TurboGears
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,

I started porting an application from tg-2.2+tw-1 to tg-2.3+tw-2. My
question is about deployment. My application is used internally only,
with low traffic; so in the past (tg-2.2), I deployed using the Paste
server behind a reverse proxy (Apache or Nginx). I'm a bit confused by
the new Gearbox. I understand that gearbox:wsgiref should not be used
for production. I would like to avoid mod_wsgi. I tried gearbox:gevent,
which seems to run fine; is it a viable option for production, if put
behind a reverse proxy (Apache or Nginx)?


Thanks,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlMPamoACgkQuu7Rv+oOo/hAJACgjIBQ7jebkzwnmd5h/SmAl7wo
W1sAoJ7nJ3Zm5bik2X9FFRV/M/b7997O
=+mNJ
-----END PGP SIGNATURE-----

Alessandro Molina

unread,
Feb 27, 2014, 3:58:26 PM2/27/14
to TurboGears .
gearbox:gevent suffers from the same constraints as Gevent, is a perfectly viable option if you are sure that your application is able to work in an asynchronous environment (no cpu bound operations, async drivers for DB and so on...). If you want to replicate the same deploy you have don Paste you can actually use Paste#http itself or waitress#main

I would probably suggest you have at look at Waitress as it is a more future proof solution: http://waitress.readthedocs.org/en/latest/
Long story short, just set:

[server:main]
use = egg:waitress#main

and you are on waitress (make sure you have waitress as a dependency of your application)



--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Jean-Denis Girard

unread,
Feb 28, 2014, 11:04:58 AM2/28/14
to turbo...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for your reply Alessandro (and for all the work done on TG), I'll
try waitress.


Regards,
- --
Jean-Denis Girard

SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27

> --
> You received this message because you are subscribed to the Google
> Groups "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to turbogears+...@googlegroups.com
> <mailto:turbogears%2Bunsu...@googlegroups.com>.
> To post to this group, send email to turbo...@googlegroups.com
> <mailto:turbo...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to turbogears+...@googlegroups.com.
> To post to this group, send email to turbo...@googlegroups.com.
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/groups/opt_out.

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlMQs6oACgkQuu7Rv+oOo/httACfbE1GCenfaGuBVAf9LfoIQQ+L
G0sAoIP1xGI+abCGiDvtpXWn6JIKghO5
=aV1s
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages