BitNami one-click installation of Redmine

1 Introduction

      For a novice, if you install redmine strictly according to the official documentation , I think it will be "crazy". Is there an easy way. There is a drop, that is BitNami.

       BitNami provides a one-click installer for redmine, which is simple, easy to use and convenient.

2. Installation

       Download address: http://bitnami.org/stack/redmine

       Not only one-click installer for windows, but also one-click installer for linux. My installation environment is windows xp, and the downloaded version is bitnami-redmine-2.3.0-0-windows-installer.exe.

       Like most Windows installers, all the way to the default "Next". It should be noted that when creating an administrator account, you need to record the user name and password. This user is the administrator account after redmine is installed, as shown in Figure 2-1 below:

Figure 2-1 Setting the administrator account information

After installation, the browser will be opened automatically, as shown in Figure 2-2 below, click "Access BitNami Redmine Stack" to access redmine.

Figure 2-2 Successful installation

       Enter the administrator account and password shown in Figure 2-1 to log in to redmine. As shown in Figure 2-3 below. Get started.

Figure 2-3 Administrator login

3. Integrate git

3.1. New repository

       Log in to redmine, add a user, and create a new project. After the creation is complete, select git in Configuration->Repository, and then write the path of git in "Path to .git repository" ( Note: You need to include the location where .git is located. path ). As shown in Figure 3-1 below.

Figure 3-1 Create a new repository

       标准安装的redmine只能访问本地git版本库,不能通过git协议访问git版本库,我们可以通过git clone --mirror克隆镜像到本地的方法来解决。

3.2. 浏览版本库

       添加完版本库后,即可在通过edmine在web上浏览版本库,选择项目 > 版本库,等待一下,让Redmine处理下Repository 的信息,然后就可以看到版本库了,如下图 3‑2所示:

图3‑2 浏览版本库

       注意:当配置完版本库第一次访问时, Redmine将抓取版本库中已经存在的所有提交信

息, 并存入数据库。所以如果你的版本库特别大, 那么该过程将会很长。

3.3. git提交和redmine问题关联

       要实现在gi代码提交的同时关闭问题状态,实现提交跟问题建立关联,需要以管理员身份登陆,依次选择“管理” > “配置” > “版本库”,按下图 3‑3所示设置,设置完点击保存。

图3‑3 提交和问题关联的设置

       回到项目中,在项目里新建一个问题,新建完后,如下图所示:

图 3‑4 新建问题

       修改代码,git提交信息中只要包含有“closes #1”字眼的,就会自动关闭问题。如下图 3‑5所示,在这里还可以看到某个bug对应改动的代码是什么。

图3‑5 git提交自动关闭问题

4. 其他

       我添加了一个大的git版本库(将git://git.kernel.org/pub/scm/git/git.git克隆到本地),想试试性能如何,结果让我很失望,添加完版本库后,去浏览版本库,一直很卡,发现CPU都99%,都被ruby占用了。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326355929&siteId=291194637