TeamCity 提供静态 HTML 页面 [英] TeamCity to serve static HTML page

查看:31
本文介绍了TeamCity 提供静态 HTML 页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种使用 TeamCity 提供一些静态 HTML 页面的方法.
如果不是绝对必要的话,我不想为此设置 apache.

I am looking for a way to serve a few static HTML pages with TeamCity.
I dont want to set up an apache for that, if not absolutely neccessary.

有人知道访问静态 HTML 内容的简单方法(或 URL 方案)吗?我找到了以下插件,但它只会在现有页面的某些位置插入 HTML 片段.无法包含整页.PluginLink 为他人提供帮助.

Does anybody know a simple way (or URL scheme) to access static HTML content. I found the following plugin, but that only inserts snippets of HTML in certain positions on existing pages. No way to include a full page. PluginLink for others as help.

感谢您的想法,克里斯

解决方案:

  • 转到例如C:\TeamCity\webapps\ROOT
  • 创建文件夹,例如静态
  • 将文件放入其中(但扩展名 .jsp 即使是 html)
  • 可以毫无问题地提供服务(在 URL/static/test.jsp 上)

推荐答案

它是一个 Tomcat 服务器,只要进入你安装 Teamcity 的文件系统,你应该能够找到你可以将一些 html 停放在哪里可在 Teamcity 网址上找到.

It's a Tomcat server, just go on your file system where you installed Teamcity and you should be able to find out where you can park some html that will then be available on the Teamcity urls.

这篇关于TeamCity 提供静态 HTML 页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆