![]() ![]() ![]() Sudo apt-get install make gcc g++ libssl-dev git libcurl4-gnutls-dev libusb-dev libsqlite3-dev python3-dev zlib1g-dev libcereal-dev liblua5.3-dev uthash-dev Mac OS X with clang++ / Xcode 5.1 (requires -std=c++14 -stdlib=libc++) It's recommended to use GCC 6 or higher(we require -std=c++14) You can find various tutorials on how to do this elsewhere on the internet, or you can check out the tutorial on this wiki: Initial Raspberry Pi Setup Compiling Using Raspi-config you can set your timezone, finish (reboot) and login again. Log in to your Raspberry with the "pi" user, open the terminal window, and issue: Make sure your system is been setup and have set to the correct date time ! 3 Make Domoticz startup at boot time (Also needed for Web Update).NOTE If you clone multiple repositories you have to add a crontab-line for every repository. */5 * * * * redmine cd /var/lib/redmine/repos/my_repo & git fetch -all -prune If we do this we have to add the username of the repository-owner who should execute the commands. */5 * * * * cd /var/lib/redmine/repos/my_repo & git remote update -pruneĪlternatively we can directly edit the "/etc/crontab"-file. We open the user specified crontab for the user "redmine" and add a cronjob to fetch all branches every five minutes. To keep the GIT repository automatically up to date we will add a cronjob. Step 3: Adding a cronjob to fetch the GIT-repository ¶ For that we will write a cronjob in step 3. Possible Fallacy: When opening the dialog redmine DOESN'T fetch new commits out of GIT! This means that you will never see new commits inside redmine if you don't update the local GIT repository. Don't cancel the progress, just let redmine work until it has finished. Especially opening the dialog for the first time of a large repository may take very long. Note: When you open the dialog redmine fetchs all changeset the local repository and the redmine database since the last time anyone opend this dialog. If you open the "repository"-tab inside your project you will see the repository tree, last commits and so on. Path: Absolute path of the repository, e.g. Name (redmine intern): I suggest to choose the same name as the repository, e.g. Main-repository: check this if the cloned repository is you main repository, if not leave it unchecked. You can access this dialog also via "project -> settings -> repositories". Inside redmine we open the "administration > project -> repositories" dialog. Step 2: Introduce the repository to redmine ¶ Now all repository information are on disk, but redmine don't knows anything about that. We switch to redmine-user and clone the repository into the choosen directory. A mirror repository has no workfiles but only the commit information what is all we need for redmine. The URL of my repo is "", the name "my_repo", so full URL is " 1: Clone the repositories ¶įirst we need to clone the repository as a MIRROR (not BARE!) repository.So the full path of this directory is "/var/lib/redmine/repos/" My redmine main directory is "/var/lib/redmine" and I will create a subdirectory "repos" there, where I clone the repositories.My owner of redmine is called "redmine".To better understand this HowTo I will use the following configuration If not you have to install GIT first, e.g. If there is green checkmark everything is fine. ![]() You can check this in redmine in the "administration > repositories" settings. Redmine must find the GIT-binaries, that means GIT must be installed.A directory to clone the GIT-repository is needed.The owner of your redmine-directory needs an SSH-Key and (reading) access to the repository you want to integrate in redmine.This HowTo will show how to integrate a GIT repository to your redmine project and how to keep the repository up to date. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |