SITE_URL is not set or is localhost. Skipping URL post-processing. - beside a complete config.sh.local in site dir's root #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello Stefano,
Just found out about BSSG. First in action in your blog, then the code, thank you!
Trying to test it with a FreeBSD fresh jail:
bash, mark socat parallel sudoinstalled. The init step done following Recommended Setup: Separating Content from Core with automatic config loadingIt seems everything is fine, main page loaded (behind and Nginx rev. proxy), but I've got this error/status message after starting the server, and no link works. Everything points to
http://localhost:8000/:Got a green
"Build process completed in 1 seconds"
"Build complete."
I've checked the config.sh sourcing the config.sh.local file from the separate site directory's root, for example /usr/local/testsite1/config.sh.local
Te site specific config.sh.local contains everything you sampled in the README.md.
tests so far:
All in all I'm guessing I overstepped something, but I couldn't find it, please let me know how can I make BSSG really load it recommended config.sh.local file :)
Hi! The embedded server should not be used for deploying in production, as it's just supposed to be used for a local preview. The correct approach is build the website using "./bssg.sh build" - you'll have the full website built (with the correct links) into the output/ directory.
Those files should be directly served by nginx, so move them into the proper directory. This way, you don't need to set the reverse proxy, but nginx will be able to serve the files.
Hi!
Thanks for the quick answer, in the meaning time I've found that, running a separate
bssg.sh buildworks as intended, but running the./bssg.sh serverdo not results in the same build result and overrides with a wrong build. I guess there's should be some difference with the sourcing of the config.sh.local file comparing to the build.So now a separate:
bssg.sh build./bssg.sh server --no-buildis a way to workaround it.@stefano wrote in #34 (comment):
Got you, however I do not intend to run Nginx twice (third time. etc.). I have an NGINX rev. proxy running separately already. This BSSG jail would the "N"th web provider uplink for that rev. proxy with other stuff proving their web code to be served with a rev. proxy by default. Do you have some low memory/CPU footprint static site web server recommendation for BSSG?
I'm seeing a RUST "static-web-server, and G-WAN now.