-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 on all assets #917
Comments
Did you download the release zip/tarball, or cloned the repo? If you cloned the repo, you won't have the compiled assets, so you have to do it all by yourself by following the developer instructions. |
I used the released zip file (https://github.com/klaussilveira/gitlist/releases/download/2.0.0/gitlist-2.0.0.zip) |
Check this for the correct webserver configuration: https://symfony.com/doc/current/setup/web_server_configuration.html Just replace |
I now have:
and the assets seem to be loaded. But this is not a nice solution. The assets of gitlist should preferably be accessible under Another problem is that now all links to the repositories point to |
I have removed the alias for the assets and
Now the repo links work but the assets still not (the url's remain |
I edited |
Maybe this is related: https://symfony.com/doc/current/frontend/encore/faq.html#my-app-lives-under-a-subdirectory |
If I edit
|
The overarching issue here seems to be the assumption by @klaussilveira that Gitlist is going to be at the root of the webserver. If you want to do This is a little silly given how condensed gitlist tries to be, but this is the nature of FrameworkHell. My guess is there are plenty of knobs and dials that could be adjusted in the deployment methodology, or as is done in many similar apps, a variable could be added to |
I had to modify a couple additional files to get everything working:
I'd love to see this. I've also worked with a few web apps that were agnostic to their URL root. I'm not sure whether this was because they are somehow automatically determining the root, or if they're only using relative URL paths. FYI, if a location-agnostic |
So after having issues deploying v2, and a string of issues with v1 and #903, I gave up and used Klaus for a while. I harbor a hatred for Python, so between that and it being ugly as sin, I gave gitlist a try on a whim this morning, and using @mblythe86's approach, its working, and I can't find anything obviously broken. It sure does seem like this line is the root of at least some of the evil (pun not intended): Line 15 in dd98962
|
I just installed gitlist (from release 2.0.0 zip) on ubuntu 22.04 but no js or css file can be found. Firefox console shows 404 on all assets which all seem to expect to found at
/assets
while giltist itself is located in/gitlist
.My apache config is:
php itself is working since the latest nextcloud runs fine.
How/where can or should I configure the url for the assets?
The text was updated successfully, but these errors were encountered: