How do I preview Hexo server?

Question:
I would like to ask how to make Replit’s webview provide a preview. I have tried the following instructions, but the webview displays: “Start a server to see the hosted output.”

Command:

hexo server -i 0.0.0.0 -p 5000

Repl link:https://replit.com/@Residual2023528/Blog?s=app


For me, running that command says command not found.

But, I think it’s because your project contents are in another folder. You’re trying to run that command in the root directory, I think. So, you’ll wanna run cd blog and THEN run that command. Also, clicking the Run button will do nothing because by default, the run button runs index.js in the root directory, which is empty right now.

Yes, I executed cd blog, but in the end the result I showed above happened.

1 Like