Redmine§
要使用 Unit 运行 Redmine 项目管理系统
使用 Ruby 语言模块安装 Unit。
安装并配置 Redmine 的 先决条件。
安装 Redmine 的 核心文件。在此,我们将其安装在 /path/to/app/;在你的配置中使用真实路径。
运行以下命令,以便 Unit 可以访问 应用程序目录
# chown -R unit:unit /path/to/app/
有关更多详细信息,包括权限,请参阅 安全检查清单。
接下来,准备 Redmine 配置以供 Unit 使用(为 working_directory 使用真实值)
{ "listeners": { "*:80": { "pass": "applications/redmine" } }, "applications": { "redmine": { "type": "ruby", "working_directory": "/path/to/app/", "script": "config.ru", "environment": { "RAILS_ENV": "production" } } } }
上传更新后的配置。假设上面的 JSON 已添加到
config.json
# curl -X PUT --data-binary @config.json --unix-socket \ /path/to/control.unit.sock http://localhost/config/
更新成功后,Redmine 应可在侦听器的 IP 和端口上使用