...
|
...
|
@@ -28,7 +28,7 @@ Create a **gitprep** user. This is not necessary, but recommended:
|
28
|
28
|
su - gitprep
|
29
|
29
|
cd ~
|
30
|
30
|
|
31
|
|
-### Check git command existance
|
|
31
|
+### Check if git is installed
|
32
|
32
|
|
33
|
33
|
git --version
|
34
|
34
|
|
...
|
...
|
@@ -38,17 +38,17 @@ Check Perl version. You can use GitPrep if the Perl version is 5.10.1+;
|
38
|
38
|
|
39
|
39
|
perl -v
|
40
|
40
|
|
41
|
|
-If your don't have Perl 5.10.1+, you need to install newer perl by perlbrew.
|
|
41
|
+If you don't have Perl 5.10.1+, you need to install a newer perl version with perlbrew.
|
42
|
42
|
|
43
|
43
|
curl -L http://install.perlbrew.pl | bash
|
44
|
44
|
echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bash_profile
|
45
|
45
|
source ~/.bash_profile
|
46
|
46
|
|
47
|
|
- perlbrew install perl-5.16.3
|
48
|
|
- perlbrew switch perl-5.16.3
|
|
47
|
+ perlbrew install perl-5.22.1
|
|
48
|
+ perlbrew switch perl-5.22.1
|
49
|
49
|
perl -v
|
50
|
50
|
|
51
|
|
-Download tar.gz archive, expand it and change directory:
|
|
51
|
+Download GitPrep .tar.gz archive, expand it and change directory:
|
52
|
52
|
|
53
|
53
|
curl -kL https://github.com/yuki-kimoto/gitprep/archive/latest.tar.gz > gitprep-latest.tar.gz
|
54
|
54
|
tar xf gitprep-latest.tar.gz
|
...
|
...
|
@@ -59,23 +59,23 @@ Setup. Needed modules are installed.
|
59
|
59
|
|
60
|
60
|
./setup_module
|
61
|
61
|
|
62
|
|
-If this fail and extlib directory already exists, try to remove "extlib" and run "./setup_module" again.
|
|
62
|
+If this fails and extlib directory already exists, try to remove "extlib" and run "./setup_module" again.
|
63
|
63
|
|
64
|
64
|
rm -rf extlib
|
65
|
65
|
./setup_module
|
66
|
66
|
|
67
|
|
-Check if module setup success . Run the following command.
|
|
67
|
+Check if module setup successes. Run the following command.
|
68
|
68
|
|
69
|
69
|
prove t
|
70
|
70
|
|
71
|
|
-If "syntax OK" is displayed, setup is sucseed.
|
|
71
|
+If "syntax OK" is displayed, setup was successful.
|
72
|
72
|
|
73
|
73
|
Setup database.
|
74
|
74
|
|
75
|
75
|
./setup_database
|
76
|
76
|
|
77
|
|
-If you used Gitprep version 1 and upgrage it to version 2, you need upgrade database
|
78
|
|
-by the following command
|
|
77
|
+If you used Gitprep version 1 and upgrade it to version 2, you need to upgrade database
|
|
78
|
+with the following command
|
79
|
79
|
|
80
|
80
|
# Backup gitprep directory for safety
|
81
|
81
|
cd ..
|
...
|
...
|
@@ -87,8 +87,8 @@ by the following command
|
87
|
87
|
./setup_database
|
88
|
88
|
old/copy_database_v1_to_v2 data/gitprep_v1bak.db data/gitprep.db
|
89
|
89
|
|
90
|
|
-If you install git in your local directry,
|
91
|
|
-you must add the correct git command path to the **gitprep.conf** config file.
|
|
90
|
+If you install git in your local directory,
|
|
91
|
+you have to add the correct git command path to the **gitprep.conf** config file.
|
92
|
92
|
|
93
|
93
|
[basic]
|
94
|
94
|
;;; Git command path
|
...
|
...
|
@@ -101,7 +101,7 @@ The application is run in the background and the port is **10020** by default.
|
101
|
101
|
|
102
|
102
|
./gitprep
|
103
|
103
|
|
104
|
|
-(If you run this command again, gitprep server restart.)
|
|
104
|
+(If you run this command again, gitprep server restarts.)
|
105
|
105
|
|
106
|
106
|
Then access the following URL.
|
107
|
107
|
|
...
|
...
|
@@ -122,11 +122,11 @@ You can run GitPrep as CGI script as the following site.
|
122
|
122
|
|
123
|
123
|
[GitPrep example site](http://perlcodesample.sakura.ne.jp/gitprep/gitprep.cgi/kimoto/gitprep)
|
124
|
124
|
|
125
|
|
-This is shared server. I assume you can connect the server via SSH and login your own user.
|
|
125
|
+This is shared server. I assume you can connect the server via SSH and login with your own user.
|
126
|
126
|
|
127
|
127
|
Installation process is same as above except for create user.
|
128
|
128
|
|
129
|
|
-If you finish installation, You can access the following URL.
|
|
129
|
+If you finish installation, you can access the following URL.
|
130
|
130
|
|
131
|
131
|
http://yourhost/somepath/gitprep/gitprep.cgi
|
132
|
132
|
|
...
|
...
|
@@ -137,7 +137,7 @@ to see what problem has occurred.
|
137
|
137
|
|
138
|
138
|
## FAQ
|
139
|
139
|
|
140
|
|
-## I can't install Gitprep into CentOS
|
|
140
|
+## I can't install Gitprep on CentOS
|
141
|
141
|
|
142
|
142
|
After CentOS 6, some perl core modules are not installed by default.
|
143
|
143
|
You can install Perl core modules by the following command.
|
...
|
...
|
@@ -146,16 +146,16 @@ You can install Perl core modules by the following command.
|
146
|
146
|
|
147
|
147
|
## Can't find git command from GitPrep
|
148
|
148
|
|
149
|
|
-If you install git into your local directry,
|
|
149
|
+If you install git into your local directory,
|
150
|
150
|
you must add the correct git command path to the config file **gitprep.conf** .
|
151
|
151
|
|
152
|
152
|
[basic]
|
153
|
153
|
;;; Git command path
|
154
|
154
|
git_bin=/home/yourname/local/bin/git
|
155
|
155
|
|
156
|
|
-### blame don't work
|
|
156
|
+### blame doesn't work
|
157
|
157
|
|
158
|
|
-In Gitprep, blame page use "git blame --line-porcelain". In old git, there is no --line-porcelain option.
|
|
158
|
+In Gitprep, blame page uses "git blame --line-porcelain". In old git, there is no --line-porcelain option.
|
159
|
159
|
We don't know when --line-porcelain was added to git.
|
160
|
160
|
At least, blame page work well in git 1.8.2.1.
|
161
|
161
|
|
...
|
...
|
@@ -249,7 +249,7 @@ You can use Name virtual host.
|
249
|
249
|
|
250
|
250
|
</VirtualHost>
|
251
|
251
|
|
252
|
|
-If you use GitPrep vis https, you should set X-Forwarded-HTTPS Request Header.
|
|
252
|
+If you use GitPrep via https, you should set X-Forwarded-HTTPS Request Header.
|
253
|
253
|
|
254
|
254
|
# HTTPS
|
255
|
255
|
<VirtualHost *:443>
|
...
|
...
|
@@ -316,14 +316,14 @@ You can import already existing repositories by **script/import_rep** script.
|
316
|
316
|
|
317
|
317
|
If **description** file exists in git repository, it is copied.
|
318
|
318
|
|
319
|
|
-### I can't add collabortor more than one
|
|
319
|
+### I can't add more than one collaborator
|
320
|
320
|
|
321
|
|
-This is GitPrep bug before version 1.5.1.
|
|
321
|
+This is a GitPrep bug before version 1.5.1.
|
322
|
322
|
Please use after version 1.5.2.
|
323
|
323
|
|
324
|
324
|
If you continue to use GitPrep before version 1.5.1,
|
325
|
325
|
collaboration table is broken.
|
326
|
|
-Please fix it by the following way.
|
|
326
|
+Please fix it the following way.
|
327
|
327
|
|
328
|
328
|
# Run SQLite client
|
329
|
329
|
sqlite3 data/gitprep.db
|
...
|
...
|
@@ -336,7 +336,7 @@ Please fix it by the following way.
|
336
|
336
|
|
337
|
337
|
### I want to set time zone.
|
338
|
338
|
|
339
|
|
-OK. GitPrep suport time zone. You can set time_zone option in conig file.
|
|
339
|
+OK. GitPrep supports time zones. You can set time_zone option in conig file.
|
340
|
340
|
|
341
|
341
|
[basic]
|
342
|
342
|
;;; Time Zone
|
...
|
...
|
@@ -414,9 +414,9 @@ You can start and stop the application with the following command.
|
414
|
414
|
|
415
|
415
|
### I want to use GitPrep on Perl 5.8.7 system
|
416
|
416
|
|
417
|
|
-GitPrep 2.0 drop support Perl 5.8.7 because latest Mojolicious don't support Perl 5.8.
|
|
417
|
+GitPrep 2.0 dropped support for Perl 5.8.7 because latest Mojolicious doesn't support Perl 5.8.
|
418
|
418
|
|
419
|
|
-You can choice two selection.
|
|
419
|
+You can choose between those options:
|
420
|
420
|
|
421
|
421
|
**1. use GitPrep 1.xx**
|
422
|
422
|
|
...
|
...
|
@@ -432,14 +432,14 @@ You can see version 1.12 document.
|
432
|
432
|
|
433
|
433
|
http://perlbrew.pl/
|
434
|
434
|
|
435
|
|
-perlbrew is very useful perl installation tools without breaking your system perl.
|
|
435
|
+perlbrew is a very useful perl installation tool without breaking your system perl.
|
436
|
436
|
|
437
|
|
-If you install perl 5.10.1+ by perlbrew, you can install latest GitPrep.
|
|
437
|
+If you install perl 5.10.1+ with perlbrew, you can install latest GitPrep.
|
438
|
438
|
|
439
|
439
|
### I know information about GitPrep 2.0 upgrading.
|
440
|
440
|
|
441
|
|
-If you use GitPrep on Perl 5.8 and install newer perl by perlbrew,
|
442
|
|
-you must remove extlib directory before "./setup_module" command.
|
|
441
|
+If you use GitPrep on Perl 5.8 and install newer perl with perlbrew,
|
|
442
|
+you must remove extlib directory before running the "./setup_module" command.
|
443
|
443
|
|
444
|
444
|
rm -rf extlib
|
445
|
445
|
|
...
|
...
|
@@ -481,7 +481,7 @@ and move this feature to project settings page.
|
481
|
481
|
|
482
|
482
|
mail address is require for user registration.
|
483
|
483
|
|
484
|
|
-## For Developer
|
|
484
|
+## For Developers
|
485
|
485
|
|
486
|
486
|
If you are a developer, you can start the application in development mode.
|
487
|
487
|
|