... | ... |
@@ -7,11 +7,12 @@ |
7 | 7 |
and move this feature to project settings page. |
8 | 8 |
- remove [basic]encoding_suspects option |
9 | 9 |
and move this feature to project settings page. |
10 |
- - setup.sh is renamed to setup_module |
|
11 |
- - separete database creating logic to setup_database script |
|
10 |
+ - setup.sh is renamed to setup_module. |
|
11 |
+ - separete database creating logic to setup_database script. |
|
12 | 12 |
- add name and mail column to user table. mail is required for user registration. |
13 |
- - add user update page |
|
14 |
- - fix bug that repository with read can't be created when git global user name and email |
|
13 |
+ - add user update page. |
|
14 |
+ - fix bug that repository with read can't be created when git global user name and email. |
|
15 |
+ - drop cygwin support. |
|
15 | 16 |
1.12 (7 Feb 2016) |
16 | 17 |
- Catch up latest Github design. |
17 | 18 |
- Fix bug that relative image path in README.md and blob html. |
... | ... |
@@ -10,10 +10,9 @@ See GitPrep example site. [GitPrep example site](http://perlcodesample.sakura.ne |
10 | 10 |
|
11 | 11 |
* Github clone: GitPrep has the same interface as GitHub. |
12 | 12 |
* Portable: You can install GitPrep on your own Unix/Linux server. |
13 |
-* Supports Windows installation via cygwin for Windows (need gcc4 package). |
|
14 | 13 |
* Only needs Perl 5.10.1+. |
15 | 14 |
* Smart HTTP support: you can pull and push via HTTP |
16 |
-* CGI support, built-in web server, and reverse proxy support. |
|
15 |
+* Built-in web server, and reverse proxy support, CGI support. |
|
17 | 16 |
* SSL support. |
18 | 17 |
|
19 | 18 |
## Check Perl Version |
... | ... |
@@ -26,7 +25,19 @@ Check Perl version. You can use GitPrep if the Perl version is 5.10.1+; |
26 | 25 |
|
27 | 26 |
git --version |
28 | 27 |
|
29 |
-## A. Installation when you run GitPrep as CGI script |
|
28 |
+## A. Installation when you run GitPrep as embdded web server |
|
29 |
+ |
|
30 |
+GitPrep has its own web server, |
|
31 |
+so you can start using the application very easily. |
|
32 |
+In this way, performance is much better than CGI. |
|
33 |
+ |
|
34 |
+### Create gitprep user |
|
35 |
+ |
|
36 |
+Create a **gitprep** user. This is not necessary, but recommended: |
|
37 |
+ |
|
38 |
+ useradd gitprep |
|
39 |
+ su - gitprep |
|
40 |
+ cd ~ |
|
30 | 41 |
|
31 | 42 |
Download tar.gz archive, expand it and change directory: |
32 | 43 |
|
... | ... |
@@ -69,10 +80,37 @@ Check setup. Run the following command. |
69 | 80 |
|
70 | 81 |
If "syntax OK" is displayed, setup is sucseed. |
71 | 82 |
|
72 |
-You can access the following URL. |
|
83 |
+### Start gitprep server |
|
84 |
+ |
|
85 |
+You can start the application by running the provided gitprep script. |
|
86 |
+The application is run in the background and the port is **10020** by default. |
|
87 |
+ |
|
88 |
+ ./gitprep |
|
89 |
+ |
|
90 |
+(If you run this command again, gitprep server restart.) |
|
91 |
+ |
|
92 |
+Then access the following URL. |
|
93 |
+ |
|
94 |
+ http://localhost:10020 |
|
95 |
+ |
|
96 |
+If you want to change the port, edit gitprep.conf. |
|
97 |
+If you cannot access this port, you might change the firewall settings. |
|
98 |
+ |
|
99 |
+### Stop gitprep server |
|
100 |
+ |
|
101 |
+You can stop the application by adding the **--stop** option. |
|
102 |
+ |
|
103 |
+ ./gitprep --stop |
|
104 |
+ |
|
105 |
+## B. Installation when you run GitPrep as CGI script |
|
106 |
+ |
|
107 |
+Installation process is same as above. |
|
108 |
+If you finish installation, You can access the following URL. |
|
73 | 109 |
|
74 | 110 |
http://yourhost/somepath/gitprep/gitprep.cgi |
75 | 111 |
|
112 |
+I recommend SuExec environment for CGI. |
|
113 |
+ |
|
76 | 114 |
### If you see Internal Server Error |
77 | 115 |
|
78 | 116 |
If you see an internal server error, look at the log file (gitprep/log/production.log) |
... | ... |
@@ -97,64 +135,6 @@ For example, you need the following config. |
97 | 135 |
AddHandler cgi-script .cgi |
98 | 136 |
</Directory> |
99 | 137 |
|
100 |
-## B. Installation when you run GitPrep as embdded web server |
|
101 |
- |
|
102 |
-GitPrep has its own web server, |
|
103 |
-so you can start using the application very easily. |
|
104 |
-In this way, performance is much better than CGI. |
|
105 |
- |
|
106 |
-### Create gitprep user |
|
107 |
- |
|
108 |
-Create a **gitprep** user. This is not necessary, but recommended: |
|
109 |
- |
|
110 |
- useradd gitprep |
|
111 |
- su - gitprep |
|
112 |
- cd ~ |
|
113 |
- |
|
114 |
-And config global git config |
|
115 |
- |
|
116 |
- git config --global user.name "gitprep" |
|
117 |
- git config --global user.email "gitprep@example.com" |
|
118 |
- |
|
119 |
-### Download |
|
120 |
- |
|
121 |
-Download tar.gz archive, expand it and change directory: |
|
122 |
- |
|
123 |
- curl -kL https://github.com/yuki-kimoto/gitprep/archive/latest.tar.gz > gitprep-latest.tar.gz |
|
124 |
- tar xf gitprep-latest.tar.gz |
|
125 |
- mv gitprep-latest gitprep |
|
126 |
- cd gitprep |
|
127 |
- |
|
128 |
-Setup. Needed module is installed. |
|
129 |
- |
|
130 |
- ./setup.sh |
|
131 |
- |
|
132 |
-Check setup. Run the following command. |
|
133 |
- |
|
134 |
- prove t |
|
135 |
- |
|
136 |
-If "syntax OK" is displayed, setup is sucseed. |
|
137 |
- |
|
138 |
-### Start |
|
139 |
- |
|
140 |
-You can start the application by running the provided gitprep script. |
|
141 |
-The application is run in the background and the port is **10020** by default. |
|
142 |
- |
|
143 |
- ./gitprep |
|
144 |
- |
|
145 |
-Then access the following URL. |
|
146 |
- |
|
147 |
- http://localhost:10020 |
|
148 |
- |
|
149 |
-If you want to change the port, edit gitprep.conf. |
|
150 |
-If you cannot access this port, you might change the firewall settings. |
|
151 |
- |
|
152 |
-### Stop |
|
153 |
- |
|
154 |
-You can stop the application by adding the **--stop** option. |
|
155 |
- |
|
156 |
- ./gitprep --stop |
|
157 |
- |
|
158 | 138 |
## FAQ |
159 | 139 |
|
160 | 140 |
## Can't find git command from GitPrep |