Edgewall Software

Opened 13 years ago

Last modified 12 years ago

#10435 closed enhancement

FastCGI scripts are not synchronized — at Version 4

Reported by: anatoly techtonik <techtonik@…> Owned by: Remy Blank
Priority: normal Milestone: 1.0
Component: general Version:
Severity: normal Keywords:
Cc: osimons Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by osimons)

Change History (4)

comment:1 by Remy Blank, 13 years ago

Milestone: 0.13
Owner: set to Remy Blank
Type: defectenhancement

Funny, I never noticed that we had these files in cgi-bin. We should remove the cgi-bin directory, those files are 5 years old, and have probably been superseded by the files generated by trac-admin $ENV deploy.

comment:2 by anatoly techtonik <techtonik@…>, 13 years ago

From the other side I remember it was hard to find information where to get scripts to run Trac in FastCGI or WSGI mode.

But even generated scripts won't help much when you're running Trac from under Nginx (should be very popular setup, BTW). It uses different script (based on cgi-bin) patched to use socket communication.

And for virtualenv you need to modify scripts as well.

in reply to:  2 comment:3 by Remy Blank, 13 years ago

Replying to anatoly techtonik <techtonik@…>:

But even generated scripts won't help much when you're running Trac from under Nginx (should be very popular setup, BTW). It uses different script (based on cgi-bin) patched to use socket communication.

And for virtualenv you need to modify scripts as well.

That's true. The generated scripts tend to serve as a basis and often require installation-specific changes, and it would be difficult to make them generic enough for everyone. We could improve them somewhat by adding more examples and documentation in the scripts themselves, for example by mentioning PYTHON_EGG_CACHE and the lines for activating a virtualenv. But they will probably always require manual editing.

comment:4 by osimons, 12 years ago

Cc: osimons added
Description: modified (diff)

The fact that these scripts don't contain any environment variable modifications makes them useful - it means you can pass in whatever you want/need from the outside without it being modified by hard-coded values from deploy. The scripts do work fine as long as they get the data they need.

However, to avoid confusion perhaps move them to contrib/cgi-bin instead?

Note: See TracTickets for help on using tickets.