Load web at http://localhost:9100/ after configuration wizard successfull and css does not load.

Load web normally.
Your host config is wrong. See documentation:
https://docs.requarks.io/wiki/troubleshooting#weird-display-no-styling
Hi NGPixel.
I have followed https://docs.requarks.io/wiki/troubleshooting#weird-display-no-styling and manually I fixed my config.yml port parameter and style loads perfect, thanks for that!!
Here my feedback:
<style id="scss-app-scss" type="text/css">锘縣tml,body,body div,span,object,iframe,h1,h2,h3,h4,h5,h6,p .............
So I appreciate if you explain me how do you do :) and why a src "old school mode" is not used :
style(type='text/css', src=appconfig.host + '/css/main.css')
Thanks for your time and thanks for your wiki.
Regards,
Richard Leon
(jrichardsz)
It is not a bug. The port Wiki.js listens to and the port the client access can be different. When using a reverse proxy, these ports are different. This is why you must set it in the host parameter if different than 80 or 443.
CSS is bundled with the js file. It is then injected on page load. It reduces the number of network calls.
I've followed the above and am still having trouble getting linked stylesheets and JS files to load. I've included setup details below. What am I doing wrong? @jrichardsz any tips for the fellow sufferer?
My Digital Ocean IP Address = 45.55.151.65
My config.yml file (partial):
title: dev wiki
host: 'http://45.55.151.65'
port: 80
...etc
The console shows the following errors:
GET http://localhost/js/vendor.js net::ERR_CONNECTION_REFUSED
GET http://localhost/js/app.js net::ERR_CONNECTION_REFUSED
I'm confused why the network requests are pointed at localhost when my config has a defined IP address.
I've restarted the app every time I edited the config.yml file.
Above links are invalid, the new URL is https://docs.requarks.io/wiki/install/troubleshooting
Actual behavior
Load web at http://localhost:9100/ after configuration wizard successfull and css does not load.
Expected behavior
Load web normally.
Steps to reproduce the behavior
- Follow this tutorial https://docs.requarks.io/wiki/install for linux machine.
- node wiki stop
- node wiki start
- point browser at http://localhost:some_port/
hardware
- 16.04.1-Ubuntu
software
- nodejs v6.11.5
- wiki.js 1.0.12 (from package.json)
i did this by adding the port number along with the ip..
example: http://localhost:8080
I came across this page searching for a similar issue with supplementary CSS not loading. Similar to what @jrichardsz posted above on December 1, 2017. Turns out the code I put in the pug file was wrong, had nothing to do with server config or reverse proxy.
To link additional stylesheets, use:
link(rel='stylesheet', href='/css/main.css')
Remember that styles declared later win, so add custom stylesheets to be bottom of the // JS / CSS section in the Pug file to override any default styles.
Also for those trying to troubleshoot changes to the view pages, or if you're just adverse to learning Pug, https://pughtml.com is a decent converter.
Just set the port like
Actual behavior
Load web at http://localhost:9100/ after configuration wizard successfull and css does not load.
Expected behavior
Load web normally.
Steps to reproduce the behavior
- Follow this tutorial https://docs.requarks.io/wiki/install for linux machine.
- node wiki stop
- node wiki start
- point browser at http://localhost:some_port/
hardware
- 16.04.1-Ubuntu
software
- nodejs v6.11.5
- wiki.js 1.0.12 (from package.json)
i did this by adding the port number along with the ip..
example: http://localhost:8080
This is work for me, set the port in host too!
Most helpful comment
Just set the port like
This is work for me, set the port in host too!