Install Redmine and integrate git under Centos

Source: Internet
Author: User
Tags redmine

Get the installation files first

wget Https://downloads.bitnami.com/files/stacks/redmine/2.6.1-0/bitnami-redmine-2.6.1-0-linux-x64-installer.run

Add executable permissions

chmod +x Https://downloads.bitnami.com/files/stacks/redmine/2.6.1-0/bitnami-redmine-2.6.1-0-linux-x64-installer.run

Installation

./bitnami-redmine-2.6.1-0-linux-x64-installer.run

Here to configure all content, including git, some things, because the installation is not recorded, there is no way to operate, specifically, almost all of the configuration is selected Yes, because the 80 port is occupied, the configuration process I have Apache port configured to 8080

After the installation is complete, Access HTTP.//host ip:8080/redmine/to log in

Create a test project after login

Start installing the GIT server below

Installing Python-setuptools

sudo apt-get install Python-setuptools

Download gitosis

<pre name= "code" class= "Java" >https://github.com/tv42/gitosis.git

Enter the Gitosis directory

CD gitosis

Installation
Python setup.py Install

Create a Git account

sudo useradd-c ' git version manage '-m-d/home/git-s bin/bash  git


Upload the client-generated secret key to the server and generate the secret key from the generation method.

Initialize git

Sudo-h-u git gitosis-init 

The following information is displayed successfully

#Initialized empty git repository in/home/git/repositories/gitosis-admin.git/#Reinitialized existing git repository in /home/git/repositories/gitosis-admin.git/
Modify Post-update Permissions

sudo chmod 755/home/git/repositories/gitosis-admin.git/hooks/post-update

Client-side cloning warehouse for configuration

git clone [email protected] host Ip:gitosis-admin.git

The public key is stored in the Keydir directory after cloning, gitosis.conf is the configuration file

Open the configuration file, add the following, and place the public key [email protected] of the other machine under the public key directory

[Group webca]writable = webcamembers = [email protected] [email protected]

Using the initialized client [email protected] to submit the WEBCA warehouse, the code is as follows

mkdir webca   cd webca  git init  touch readme.md git add readme.md git commit-m "init webca"  git remote add Origin [email protected] host IP:webca.git  

Configure Redmine to associate the Git repository, click Create Test Project---configuration----new repository---Choose git-> input git directory, this is /home/git/repositories /webca.git, tick the main repository to determine.

This time may appear 404, the possible reason is that Webca.git is not enough permissions, in order to avoid unnecessary trouble in the future, directly to the 777 permissions to the directory, refresh to see the repository's submission information


Install Redmine and integrate git under Centos

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.