英文:
How to publish a Quarto website to an intranet web server?
问题
我无法找到除了Quarto指南中提到的可能性之外的有关此主题的任何信息。我以前通过Quarto和GitHub构建过网站,所以在Quarto方面我有经验。但对于完全不熟悉内部网站服务器的新手,是否有获取网站放在内部网站服务器上的提示?
英文:
I can't find anything on this subject besides it being possible as per Quarto's guide.
I have built a website through Quarto and GitHub before, so I have experience on the Quarto side of things. But are there tips for getting a website on an intranet web server, for a complete newbie to intranet web servers?
答案1
得分: 4
Just like any other static site generator, Quarto creates a directory full of HTML files and resources (by default it's _site
dir, as far as I can see). Its content is supposed to be ready to be dropped into a directory and served by any half-decent web server. So if we talking about starting from scratch:
- Find a server
- Set up DNS so that
your.intranet.server
address resolves to the server's IP address properly - Install and run a Web server (nginx is one of the most popular choices)
- Check server config to see what directory is served by default (for nginx it's usually something like
/usr/share/nginx/html
) - Copy the contents of your
_site/
into that default directory.
It is by no means a full tutorial but should get you started, hopefully.
英文:
Just like any other static site generator, Quarto creates a directory full of HTML files and resources (by default it's _site
dir, as far as I can see). Its content is supposed to be ready to be dropped into a directory and served by any half-decent web server. So if we talking about starting from scratch:
- Find a server
- Set up DNS so that
your.intranet.server
address resolves to the server's IP address properly - Install and run a Web server (nginx is one of the most popular choices)
- Check server config to see what directory is served by default (for nginx it's usually something like
/usr/share/nginx/html
) - Copy the contents of your
_site/
into that default directory.
It is by no means a full tutorial but should get you started, hopefully.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论