Redmine有一个%Done字段,用于跟踪问题的进度.默认情况下,列表框包含从0到100的10%增量值.是否可以将列表框更改为纯文本字段,以便输入0-100之间的任何整数或更改列表框以显示0-100之间的所有整数?我知道我可以为此创建一个自定义字段,但如果可能的话我想使用内置的.
我希望允许非管理员用户创建他们自己的项目,我找到了为创建项目的非管理员设置默认角色的选项,但我找不到如何让他们实际创建项目,我必须在某处为他们设置角色吗?或者是否有我必须安装的插件?
我在Linux x86_64系统上部署了一个redmine实例,我很难解决一个有趣的性能不一致问题.它的行为如下:
单独放置几个小时(根本没有请求应用程序)然后建立连接,响应前几个请求需要很长时间(可能差15秒+,有时每个响应约1分钟).在前几个请求之后,它的性能非常快,几乎可以立即从日志中看到响应时间不到100毫秒.
我尝试了几个选项来使用mongrel运行它,将它部署在乘客Nginx上,以及乘客Apache上.这种行为简单可再现.我从测试中意识到它保持忙碌时,根本就没有问题.
这是什么一回事呢?我怎样才能改善这个?
我有一个Ubuntu服务器(11.10)并使用mod_passenger为Redmine.它工作得很好,但在第一次运行时(某些时候偶尔)会慢一些.
我用谷歌搜索并提出了这个问题:http: //www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerMinInstances
但是我无法设置任何指定的选项.他们只是不工作.我试过了:
无论我在哪里放置像'PassengerMinInstances 3'这样的命令并尝试重新加载Apache我得到:
Syntax error on line 9 of /etc/apache2/sites-enabled/redmine:
Invalid command 'PassengerMinInstances', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
Run Code Online (Sandbox Code Playgroud)
当然,线条和文件不同.日志不包含任何相关内容.
我正在尝试为Redmine创建一个消息插件.我对此有几点怀疑
我怎么能用Redmine插件发送电子邮件?是否可以在插件中创建邮件程序?如果是这样,创建邮件的命令是什么?
我能够看到这个(call_hook)方法几乎所有的控制器文件.这种方法有什么用?
提前致谢
我正在尝试在fedora-18(64位)上安装redmine-2.3.0.我按照redmine官方用户指南(http://www.redmine.org/projects/redmine/wiki/RedmineInstall)的说明进行操作.一切顺利,直到我跑:rake generate_secret_token.我收到以下错误:
耙子流产了!无法加载此类文件 - pg_ext
我有postgresql-9.2.4-1.
在此先感谢您的帮助.
有没有办法手动将修订/提交与Redmine问题关联?
通常我们通过使用适当格式的提交消息来做到这一点(在我们的例子中,"Resolves#...").但我忘记了它并使用了不同的信息.
我现在无权更改提交消息.即使我仍然无法删除Redmine的数据,以便再次重建它.(问题给出的方法Redmine和SVN:如何在提交发生后将修订链接到问题?).
我用"r ..."评论更新了这个问题,该评论与修订版本正确相关.但这只是一个链接.它没有生成"关联修订"作为正确的提交消息.
有没有办法手动强制Redmine看到这样的关联?
我正在尝试调试apache升级后出现的问题.我想将redmine集成到我的apache身份验证/访问控制中.
这是我的apache配置:
<Location "/git/">
AuthType Basic
AuthName "Git Access"
Require valid-user
Order deny,allow
Allow from all
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
...
Run Code Online (Sandbox Code Playgroud)
这是访问/验证处理程序:
sub access_handler {
my $r = shift;
unless ($r->some_auth_required) {
$r->log_reason("No authentication has been configured");
return FORBIDDEN;
}
return OK unless request_is_read_only($r);
my $project_id = get_project_identifier($r);
$r->log_error("Setting Auth to OK") if is_public_project($project_id, $r) && anonymous_role_allows_browse_repository($r);
$r->log_error("Content: " . $r->get_handlers("PerlAuthenHandler"));
$r->set_handlers(PerlAuthenHandler => [\&ok_authen_handler])
if is_public_project($project_id, $r) && anonymous_role_allows_browse_repository($r);
return OK
}
sub ok_authen_handler {
my $r = shift;
$r->log_error("ok_authen_handler()..."); …Run Code Online (Sandbox Code Playgroud) redmine使用放置在 /usr/share/redmine/public/favicon.ico
我发现很多使用 cd /usr/share/redmine/; grep -HR favicon app/
app/helpers/application_helper.rb: def favicon
app/helpers/application_helper.rb: "<link rel='shortcut icon' href='#{favicon_path}' />".html_safe
app/helpers/application_helper.rb: # Returns the path to the favicon
app/helpers/application_helper.rb: def favicon_path
app/helpers/application_helper.rb: icon = (current_theme && current_theme.favicon?) ? current_theme.favicon_path : '/favicon.ico'
app/helpers/application_helper.rb: # Returns the full URL to the favicon
app/helpers/application_helper.rb: def favicon_url
app/helpers/application_helper.rb: path = favicon_path
app/views/journals/index.builder: xml.icon favicon_url
app/views/common/feed.atom.builder: xml.icon favicon_url
app/views/layouts/base.html.erb:<%= favicon %>
Run Code Online (Sandbox Code Playgroud)
但要找到有关如何设置favicon_pathor的更多信息的运气就不好了favicon_url。
我在主题文件夹中添加了一个小javascript javascripts/theme.js:
document.head = document.head || document.getElementsByTagName('head')[0];
function changeFavicon(src) …Run Code Online (Sandbox Code Playgroud) 我从 FreeBSD 11.3 上的端口安装了 redmine,现在尝试从浏览器访问它,但它崩溃了。错误日志显示以下内容。
/usr/local/lib/ruby/gems/2.6/gems/activesupport-4.2.11.1/lib/active_support/core_ext/object/duplicable.rb:111: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.
/usr/local/lib/ruby/gems/2.6/gems/mysql2-0.4.10/lib/mysql2/mysql2.so: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.6.6p146 (2020-03-31 revision 67876) [amd64-freebsd11]
-- Control frame information -----------------------------------------------
c:0027 p:-4313666350 s:0131 e:000130 TOP [FINISH]
c:0026 p:---- s:0128 e:000127 CFUNC :require
c:0025 p:0261 s:0123 e:000122 TOP /usr/local/lib/ruby/gems/2.6/gems/mysql2-0.4.10/lib/mysql2.rb:31 [FINISH]
c:0024 p:---- s:0119 e:000118 CFUNC :require
c:0023 p:0033 s:0114 e:000113 BLOCK /usr/local/lib/ruby/gems/2.6/gems/bundler-2.0.2/lib/bundler/runtime.rb:81 [FINISH]
Run Code Online (Sandbox Code Playgroud)
输出更长,我将其缩短,这是堆栈中最上面的错误。我不确定哪个社区更适合解决这个问题,所以我决定先在这里问。