I have always deployed using mod_wsgi so I cannot really help with
specific uWSGI configuration, maybe other users can be more useful
than me on this.
The suggestion I can give you is to look for documentation about uWSGI
and Pylons, most of the guides that work with Pylons should work with
TG too.
On Sun, Jun 24, 2012 at 8:12 PM, alind <alinds...@gmail.com> wrote:
> Hi all. We have developed one application for in-house usage using TG. I
> want to host it on nginx and uwsgi (attempting to learn them via tg
> hosting).
> I am unable to get it done by reading on the web. My tgenv virtualenv is at
> /home/web/tg2unsenv
> I am using Debian.
> My tg 2.2 application is at /home/web/projects/example22/
> My /etc/nginx.conf -> http://pastebin.com/2LrCZizm
> My /etc/nginx/sites-enabled/gmatweb_nginx.conf ->
> http://pastebin.com/Kj4Htjbd
> My /etc/uwsgi/apps-enabled/vhost.ini ->
> http://pastebin.com/aUynQumx
>
> Can somebody guide me where I am wrong or the (huge) gap in my
> understanding.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/vNEdfq9kNU0J.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+unsubscribe@googlegroups.com.
On Mon, Jun 25, 2012 at 8:04 AM, alind <alind...@gmail.com> wrote:
> Reading a bit more on internet, I understood (dont know if correctly) that
> wsgi section should be put in productiion.ini of my TG product.
> Here is the productio.ini file -> http://pastebin.com/GfVijDUc
> Running uwsgi inside by virtualenv with command runs.
> uwsgi --ini production.ini
The --ini option is to specify an ini file with the uwsgi config, what you are looking for is the --paste option which specifies the absolute path to your production.ini (or development) file, just add the paste option on you uwsgi ini config.
Regards,
Carlos Daniel Ruvalcaba