nusserstudios / tailbliss

TailBliss is a Hugo Starter theme built on TailwindCSS 3, and Alpine.JS.
https://tailbliss.netlify.app/
Apache License 2.0
314 stars 146 forks source link

Difficulty getting framework to properly render on development server from 0.0.0.0 #131

Closed anoduck closed 1 year ago

anoduck commented 1 year ago

I am developing my site on a remote server, so I need to be able to render the site on an address other than localhost. I have made the necessary changes to packages.json and added --bind 0.0.0.0 -b ./ --disableFastRender, yet still assets are referenced to localhost.

Is there a way to change this?

nusserstudios commented 1 year ago

I have never tried developing live on a remote site. Did you put the live domain in baseURL: ''? in the hugo.yaml file?

KhalilSecurity commented 1 year ago

I use this command to develop on a remote server + VS code SSH plugin. No changes to package.json or hugo.yaml

sudo hugo server --bind 192.168.180.20 --baseURL http://192.168.180.20

Change 192.168.180.20 to your server IP

anoduck commented 1 year ago

@nusserstudios It does the same thing with every theme

I use this command to develop on a remote server + VS code SSH plugin. No changes to package.json or hugo.yaml

sudo hugo server --bind [192.168.180.20](http://192.168.180.20) --baseURL http://192.168.180.20

Change 192.168.180.20 to your server IP

I was using -b ./. That works.