如何以编程方式设置Redmine WS API Key?

时间:2013-01-18 15:32:44

标签: redmine

我需要启用Redmine WS,然后在安装期间生成并存储其API密钥,以便稍后在其他脚本(例如fetch_changesets)中使用它。这有红宝石的命令吗?

1 个答案:

答案 0 :(得分:1)

/usr/share/redmine/script/runner "Setting.sys_api_enabled = 1" -e production
/usr/share/redmine/script/runner "Setting.sys_api_key = 'abcd'" -e production