Trac 多个项目 - 可用项目页面 /path/to/templates 错误
我有两个独立的 trac 项目(两个网站),
/path/to/project1
/path/to/project2
自从 模板将应用于并列出所有可用项目
/path/to/templates
没有使用
$ tracd -p 8080 /path/to/project1 /path/to/project2
因此,我
$ tracd -p 8080 -e /path/to
基于此处看到的用法示例的 使用。这将打开一个包含“可用项目”的页面,并列出两个项目链接。到目前为止,一切顺利...
然后我转到使用示例此处并将模板复制到项目列表主题并将其保存到 /path/to/templates/projects.html
然后根据他们的页面,我将路径导出到可用项目模板
$ export TRAC_ENV_INDEX_TEMPLATE=/path/to/templates/projects.html
$ sudo -u myUsername tracd --port=8000 -e /path/to
当我拉起 http:// localhost:8000
我得到以下路径
Available Projects
project1 - Voyage to Mars
project2 - The Return Trip
templates: Error 2, 'No such file or directory'
所有路径都是从根开始的绝对路径,我不确定为什么 trac 找不到模板。我缺少什么想法吗?
感谢您的帮助...
I've got two standalone trac projects (two websites)
/path/to/project1
/path/to/project2
I created a templates folder upstream of the projects since the
template would apply to, and list all available projects
/path/to/templates
So, instead of using
$ tracd -p 8080 /path/to/project1 /path/to/project2
I used
$ tracd -p 8080 -e /path/to
based on to the Usage examples seen here. This pulls up a page with "Available Projects", and the two project links listed. So far, so good...
I then went to the Usage examples here and copied the template under the Project List topic and saved it to /path/to/templates/projects.html
Then according to their page I export the path to the Available Projects template
$ export TRAC_ENV_INDEX_TEMPLATE=/path/to/templates/projects.html
$ sudo -u myUsername tracd --port=8000 -e /path/to
When I pull up http://localhost:8000
I get the following
Available Projects
project1 - Voyage to Mars
project2 - The Return Trip
templates: Error 2, 'No such file or directory'
The paths all are absolute from the root, I'm not sure why trac can't find the template. Any ideas what I am missing?
Thanks for any help...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我之前已经成功定制过。所以这是可以做到的。
我在您的描述中发现的唯一问题是,您指定了带路径的模板,而 引用的 wiki 文档建议仅提供路径。
也许,有了这个提示你就已经可以成功了。我明天会仔细检查 - 现在无法访问。
I've done the customization before with success. So it can be done.
The only glitch I can spot in your description, that you specify the template with path, while the referenced wiki documentation suggests to only provide the path.
Maybe, you can already succeed with this hint. I'll double-check tomorrow - no access right now.