Opened 5 months ago

Closed 5 months ago

Last modified 4 months ago

#3272 closed task (fixed)

Serve trac static files as static resources (not involving python)

Reported by: strk Owned by: strk
Priority: normal Milestone: Sysadmin Contract 2024-I
Component: SysAdmin/Trac Keywords:
Cc:

Description

Change History (6)

comment:1 by strk, 5 months ago

I've deployed serving static files without using python on the staging server and after testing I'm deploying to production.

See the ansible part here: https://git.osgeo.org/gitea/sac/ansible-deployment/commit/b7eb20f11552aba3b4a82561ab9a14d61f0d00de

There is a non-ansible part which was done manually before the deploy and is now documented in https://wiki.osgeo.org/wiki/Trac#Static_files_deploy

I guess we could make an ansible task for that as well, which should only run when trac is upgraded or a new plugin is installed.

comment:2 by strk, 5 months ago

Serving static files like this seem to also help with the 502 ( bad gateway ) responses ticketed in #3271

comment:3 by strk, 5 months ago

Milestone: UnplannedSysadmin Contract 2024-I
Resolution: fixed
Status: newclosed

Closing as completed

comment:5 by strk, 5 months ago

And we do use the same url for common assets of every trac environment too now, with https://git.osgeo.org/gitea/sac/ansible-deployment/commit/741a6f2e41c54e808bbaf25b673bec9f0507cbb6

AND with droppign the local override of htdocs_location in each env's trac.ini

comment:6 by strk, 4 months ago

Reopening as it's happening again. It may be a segfault of apache.

Note: See TracTickets for help on using tickets.