Why does it show the wrong color scheme if I cd to ./public and start a web server? #5551
Replies: 6 comments 2 replies
-
I guess I could run a reverse proxy with caddy in front of |
Beta Was this translation helpful? Give feedback.
-
https://hexo.io/docs/configuration.html as i know, colorshceme is not a config item of hexo. It may be related to theme |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce the problem you mentioned. In my tests, cactus' colorscheme works fine with any server |
Beta Was this translation helpful? Give feedback.
-
As I understand it, there's a
This is extremely perplexing. Everything about my site works fine with the dev server, and also works fine with another server like Caddy, EXCEPT that with the other server, the colorscheme is dark!! It's quite frustrating and may mean I can't use hexo/cactus. I
I know, but my understanding is that it would be safe for a low-volume site if behind a real web server like nginx doing reverse proxy. Is that wrong? |
Beta Was this translation helpful? Give feedback.
-
I just deployed it to Netlify. Same thing! Light in |
Beta Was this translation helpful? Give feedback.
-
I could upload my site somewhere if that would be of interest. It's not secret. There must be some reason this is happening, and if it's happening to me, it seems like it could be happening to others. |
Beta Was this translation helpful? Give feedback.
-
I am experimenting with hexo (using the cactus theme).
I have colorscheme set to white in _config.yml (and I get the same results whether I use hexo's _config.yml or that of the cactus theme).
When I run
hexo generate
and thenhexo server
, my site shows up in my browser as white. But when I cd to the public directory and runpython -m http.server 8000
orcaddy file-server
, and open the site, it shows up what appears to be the dark colorscheme. But everything else about it seems to work perfectly, include all other styling.I can't understand why that would happen. I want to be able to deploy the files to my own server and run caddy in the directory that contains them. But I need to be able to control the colorscheme. Given that your deployment docs say, "All generated files are saved in the public folder. You can copy them to wherever you like," it seems like I should be able to run the site from the public directory just as I would if I copied those files to another server.
Any thoughts??
Beta Was this translation helpful? Give feedback.
All reactions