如何将Quarto网站发布到内部网络服务器?

huangapple go评论60阅读模式
英文:

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:

  1. Find a server
  2. Set up DNS so that your.intranet.server address resolves to the server's IP address properly
  3. Install and run a Web server (nginx is one of the most popular choices)
  4. Check server config to see what directory is served by default (for nginx it's usually something like /usr/share/nginx/html)
  5. 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:

  1. Find a server
  2. Set up DNS so that your.intranet.server address resolves to the server's IP address properly
  3. Install and run a Web server (nginx is one of the most popular choices)
  4. Check server config to see what directory is served by default (for nginx it's usually something like /usr/share/nginx/html)
  5. Copy the contents of your _site/ into that default directory.

It is by no means a full tutorial but should get you started, hopefully.

huangapple
  • 本文由 发表于 2023年4月4日 04:20:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/75923471.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定