<p>I installed the presenter tool (go get golang.org/x/tools/cmd/present) and downloaded a presentation (<a href="https://github.com/golang/talks/blob/master/2012/zen.slide" rel="nofollow">https://github.com/golang/talks/blob/master/2012/zen.slide</a>).</p>
<p>If I run the presenter-tool and open this presentation in a browser, the slides show correctly. Including the 'run'-button at the bottom of the examples.</p>
<p>Problem:
If I click the 'run'-button for one of the examples there is no result shown ?!
It only shows a black window with Run/Kill/Close, but no results.
According to the docs on <a href="https://godoc.org/github.com/Go-zh/tools/cmd/present" rel="nofollow">https://godoc.org/github.com/Go-zh/tools/cmd/present</a> this button should work by default. Adding -play=true as param does not solve the problem (if =false the run-button is not shown at all).</p>
<p>I searched for this problem but found no references this it. So it seems this normally just works. What do I do wrong ?</p>
<hr/>**评论:**<br/><br/>mkboudreau: <pre><p>It's been a while, but if my memory serves me correctly, you may need to set the -orighost to match the external host/ip that the browser is using to access your presentation. I had to do this within my dockerized go present tool. (<a href="https://hub.docker.com/r/mkboudreau/go-present" rel="nofollow">https://hub.docker.com/r/mkboudreau/go-present</a>)</p></pre>1Gijs: <pre><p>Thank you ! This works:</p>
<pre><code>present -orighost="localhost"
</code></pre></pre>1Gijs: <pre><p>Sorry for the unclear title :-( Seems not possible to edit it...</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传