Redmine
启动
sudo bundle exec rails server webrick -e production -b 0.0.0.0 -p 3000 &
sudo bundle exec rails server webrick -e production -b 0.0.0.0 -p 3000 > /tmp/redmine.log 2> /tmp/red.log
这里指定了host及端口,否则默认非主机无法访问
代码高亮
Redmine supports two syntaxes of formatting based on configuration (Administration → Settings → Text Formatting)
使用方法如下:
<pre><code class="json">
{
name: "just work",
author: "xinshu"
}
</code></pre>
效果:
{
name: "just work",
author: "xinshu"
}