Github clone. you can install portable github system into unix/linux.
This application is alpha relese. Features will be changed without warnings.
Shared Server must support Linux/Unix, Apache, SuExec, CGI, and PHP5(CGI mode).
(PHP is not necessary, if PHP exists, install process is easy because you don't need to think about permission.)
Many shared server support these, so you will find sutable server easily.
You donwload gitprep.
https://github.com/yuki-kimoto/gitprep/archive/latest.zip
You expand zip file. You see the following directory.
gitprep-latest
Rename this gitprep-latest to gitprep.
gitprep-latest -> gitprep
GitPrep need git command. you must install git by yourself.
and you must add git command path into config file gitprep.conf
[basic]
;;; Git command path
git_bin=/home/yourname/local/bin/git
You upload these directory into server document root by FTP.
Access the following URL by browser.
http://(Your host name)/gitprep/setup/setup.php
(If you don't access PHP file or don't have PHP, you can use CGI script please set this CGI script permission to 755)
http://(Your host name)/gitprep/setup/setup.cgi.
Click Setup button once and wait abount 5 minutes.
If you see result, click "Go to Application".
If you see internal server error, you see gitprep/log/production.log. You know what error is happned.
GitPrep have own web server, so you can execute application very easily. This is much better than above way because you don't need to setup Apache environment, and performance is much much better.
(You can also install GitPrep into Cygwin. If you want to install GitPrep into Cygwin, gcc4 and make program are needed.)
At first create gitprep user. This is not nesessary, but recommended.
useradd gitprep
su - gitprep
cd ~
Download tar.gz archive and exapand it and change directory.
curl -kL https://github.com/yuki-kimoto/gitprep/archive/latest.tar.gz > gitprep-latest.tar.gz
tar xf gitprep-latest.tar.gz
mv gitprep-latest gitprep
cd gitprep
You execute the following command. Needed moudles is installed.
./setup.sh
Do test to check setup process is success or not.
prove t
If "All tests successful" is shown, setup process is success.
Same as Shared Server's Configuration section.
You can start application start. Application is run in background, port is 10020 by default.
./gitprep
You can access the following URL.
http://localhost:10020
If you change port, edit gitprep.conf. If you can't access this port, you might change firewall setting.
You can stop application by --stop option.
./gitprep --stop
If you want to do operation by root user, you must do some configuration for security.
You add user and group to hypnotoad section in gitprep.conf to execute not root user for security.
[hypnotoad]
...
user=gitprep
group=gitprep
Start application
/home/gitprep/gitprep/gitprep
Stop application
/home/gitprep/gitprep/gitprep --stop
If you want to start application when os start, add the start application command to rc.local(Linux).
If you want to make easy to manage gitprep, Let's create run script in /usr/local/sbin.
/home/gitprep/gitprep/create_run_script > /usr/local/sbin/run_gitprep
chmod 755 /usr/local/sbin/run_gitprep
You can start and stop application the following command.
# Start/Restart
run_gitprep
# Stop
run_gitprep --stop
If you are developer, you can start application development mode
./morbo
You can access the following URL.
http://localhost:3000
If you have git, it is easy to install from git.
git clone git://github.com/yuki-kimoto/gitprep.git
It is useful to write configuration in gitprep.my.conf , not gitprep.conf.
Copyright 2013-2013 Yuki Kimoto all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.