Skip to content
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

Too slow to open marksrv server page. #38

Closed
m2acgi opened this issue May 2, 2018 · 10 comments
Closed

Too slow to open marksrv server page. #38

m2acgi opened this issue May 2, 2018 · 10 comments
Assignees
Labels

Comments

@m2acgi
Copy link

m2acgi commented May 2, 2018

It's very slow to load the page served by markserv server. After check the Chrome developer tools, I found the root cause it that http request to http://sindresorhus.com/github-markdown-css/github-markdown.css failed.

In my network, we can't access the url becase of internet censorship.

2018-05-02 17_22_34-greenshot

@F1LT3R
Copy link
Collaborator

F1LT3R commented May 2, 2018

Thanks for submitting @m2acgi - I will look into this today. What I might do is bundle this file internally with markserv so it gets packaged in the published tarball on npm.

@F1LT3R
Copy link
Collaborator

F1LT3R commented May 2, 2018

Should be fixed now in markserv@1.6.1 - see: #40

@m2acgi could you npm i -g markserv@1.6.1 and let me know if things are working for you now?

@F1LT3R F1LT3R self-assigned this May 2, 2018
@F1LT3R F1LT3R added the bug label May 2, 2018
@m2acgi
Copy link
Author

m2acgi commented May 3, 2018

@F1LT3R

Things are working. But there's another issue, I can't run markserv with the command "markserv -a 0.0.0.0 /docs". but put this command to /etc/rc.local, then reboot, it works.

2018-05-03 15_58_21

@F1LT3R
Copy link
Collaborator

F1LT3R commented May 3, 2018

Try putting s period before the slash markserv -a 0.0.0.0 ./docs

Using /docs would look for the directory on the root of your drive.

@F1LT3R
Copy link
Collaborator

F1LT3R commented May 3, 2018

Oh you do have docs in root. That's interesting. If you cd /docs and markserv -a 0.0.0.0 ./, what happens?

@m2acgi
Copy link
Author

m2acgi commented May 3, 2018

If I 'cd /docs' and 'markserv -a 0.0.0.0 ./', it works.

@F1LT3R
Copy link
Collaborator

F1LT3R commented May 3, 2018

Thanks for checking this. I will look into it soon. If it works fine the same dir it's most likely a confirmation problem in my code.

Thanks for looking into this 🙌

@F1LT3R
Copy link
Collaborator

F1LT3R commented May 4, 2018

Let's tackle this bug here: #46

@F1LT3R
Copy link
Collaborator

F1LT3R commented May 4, 2018

Do you mind if we close this first bug now @m2acgi ?

@m2acgi
Copy link
Author

m2acgi commented May 4, 2018

@F1LT3R ok, thank you.

@F1LT3R F1LT3R closed this as completed May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants