FS#66011 - [gitea] CSS and JS files are missing
Attached to Project:
Community Packages
Opened by Tilo Brueckner (blueperil) - Saturday, 28 March 2020, 20:00 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 02 April 2020, 21:08 GMT
Opened by Tilo Brueckner (blueperil) - Saturday, 28 March 2020, 20:00 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 02 April 2020, 21:08 GMT
|
Details
Description:
Gitea is missing CSS and JS files. as described in https://github.com/go-gitea/gitea/commit/d9c67a8c903fa9927bad28f5fcb816f89f8200eb#diff-3254677a7917c6c01f55212f86c57fbf CSS and JS files won't be build anymore. The build and packaging process needs to be adjusted. Steps to reproduce: Update from Gitea 1.11.1 to 1.11.3 |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Thursday, 02 April 2020, 21:08 GMT
Reason for closing: Fixed
Additional comments about closing: 1.11.4-2
Thursday, 02 April 2020, 21:08 GMT
Reason for closing: Fixed
Additional comments about closing: 1.11.4-2
In the meantime we'll look for a way to get bindata working again.
After a upgrade to 1.11.4, the CSS is broken in Firefox, the console shows:
> Stylesheet https://host/user/login was not loaded because its MIME type, "text/html", is not "text/css". (roughly translated from German)
> SyntaxError: expected expression, got '<' (for index.js),
/js/index.js?v=[somestring] returns
```
<a href="/user/login">Found</a>.
```
STATIC_ROOT_PATH =
or
STATIC_ROOT_PATH = ""
or
#STATIC_ROOT_PATH = /usr/share/gitea
It works only with:
STATIC_ROOT_PATH = /usr/share/gitea
STATIC_ROOT as empty does nothing
I don't see how it can work with STATIC_ROOT_PATH set to /usr/share/gitea, as gitea lives in /usr/bin/gitea under 11.4 (no setting static root there didn't fix it either)