libertysoft3 / saidit

The reddit open source fork powering SaidIt
https://saidit.net
Other
226 stars 40 forks source link

uncompressedJS = false causes 404s #78

Closed shelt closed 4 years ago

shelt commented 4 years ago

After setting uncompressedJS = false and running refresh-css.sh, it generates files in the static/compiled-css/ folder, but the HTML is looking for them in static/, for example href='static/reddit.css'. What am I missing here?

libertysoft3 commented 4 years ago

After you changed settings, did you run 'make ini' and 'sudo reddit-restart'?

shelt commented 4 years ago

Yes

shelt commented 4 years ago

@libertysoft3 I see that the saidit.net HTML has the following

<link rel="stylesheet" type="text/css" href="/static/compiled-css/reddit.VSTWny6srBc.css" media="all">

Whereas my hosted version has

<link rel="stylesheet" type="text/css" href="/static/reddit.css" media="all">

Any idea why my version is not looking in compiled-css/?

libertysoft3 commented 4 years ago

This isn't ringing any bells, but try also setting 'debug' to false, and run through this procedure: https://github.com/libertysoft3/saidit#rebuild-reddit-open-source

The saidit refresh-css script is assuming that things have already been setup/run once.

libertysoft3 commented 4 years ago

I think this issue was a missing uglify-js dependency, resolved in 5650e099192d601b76158cfdf84402b1d1ba4347