-
Notifications
You must be signed in to change notification settings - Fork 68
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
host for static file routes is no longer hardcoded as localhost #994
base: main
Are you sure you want to change the base?
Conversation
Modification to: mystmd/packages/myst-cli/src/build/html/index.ts Builds host variable from env variable HOST in accordance with documentation and option to honor HOST with --keep-host option
Thanks for submitting your first pull request! You are awesome! 🤗 |
This is created to address issue #965 |
Doesn't this affect |
Thanks for the reply. I should mention that I'm just a user, or at least I'd like to be a user, but I can't get myst to work when I have to run on a remote machine via ssh. My goal is to be a user. I'm not following the distinction between running the server as |
Generally though, it should fine if you leave it to run as
Same 😉 |
Can you say more about how Or are you picturing caddy running on the client side? |
You could check where the server is actually started: But I think this would be an issue either with myst parsing link files (try to look at the json files in the artifacts for any clues), or with the theme. I didn't manage to navigate passed the webserver start to see how the content is generated |
Thanks. Your comments helped a lot. After investigating more, it seems that the server (the ContentServer on port 3100) is truly binding to the external interface and truly serving the files when asked. (I can pluck the URL out of the HTML served to the client and modify the domain and it loads.) I suspect you're right in that this might be an issue with |
I am having this exact same issue with the book theme. @drewlio Were you able to find a workaround that allowed you to actually publish a site with your content? |
Modification to:
mystmd/packages/myst-cli/src/build/html/index.ts
Builds host variable from env variable HOST in accordance with documentation and option to honor HOST with --keep-host option