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

Deploy with --bind=0.0.0.0 #24

Open
KeremKaratas opened this issue Dec 19, 2022 · 3 comments
Open

Deploy with --bind=0.0.0.0 #24

KeremKaratas opened this issue Dec 19, 2022 · 3 comments

Comments

@KeremKaratas
Copy link

I'm trying to deploy locally within a closed domain network and having some trouble locating main.css. Network inspection shows the request to http://localhost:1313/css/main.css. I am able to reach the right main.css via http://ot-dev.senstar-stellar.local/css/main.css.

Everything works as expected on the local device.

actions taken:

  1. package.json line 9 changed to;
    "dev": "hugo serve --bind=0.0.0.0",
  2. config.toml line 1 changed to;
    baseURL = 'http://ot-dev.senstar-stellar.local'
    url accessable from another device on network
@apvarun
Copy link
Owner

apvarun commented Dec 24, 2022

Does the page load when you access via network on http://ot-dev.senstar-stellar.local?

In Hugo, when you set the base URL, all the paths for html/css/js files are built with the baseURL prefix, and so, it won't be accessible from localhost:1313

@KeremKaratas
Copy link
Author

page loads when I access http://ot-dev.senstar-stellar.local except main.css because it is trying to be called from http://localhost:1313/css/main.css. So I see the page without any styling.

@apvarun
Copy link
Owner

apvarun commented Dec 25, 2022

@KeremKaratas Can you explain how the .local domain is set up? Is it a proxy or redirect at router level or something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants