gitprep / README.md /
Newer Older
251 lines | 7.176kb
improved README
Yuki Kimoto authored on 2013-03-29
1
# GitPrep
2

            
Update README.md
Matthew Musgrove authored on 2013-07-22
3
Github clone. You can install portable github system into Unix/Linux.
improved README
Yuki Kimoto authored on 2013-03-29
4

            
added image
Yuki Kimoto authored on 2013-04-21
5
<img src="http://cdn-ak.f.st-hatena.com/images/fotolife/p/perlcodesample/20130421/20130421180903_original.png" width="850">
6

            
improved README
Yuki Kimoto authored on 2013-03-29
7
# Features
8

            
improve readme
Yuki Kimoto authored on 2013-08-28
9
* Github clone. GitPrep have same interface as GitHub.
10
* Portable. You can install GitPrep into your Unix/Linux server.
improve readme
Yuki Kimoto authored on 2013-08-28
11
* Support cygwin on Windows(need gcc4 package). You can install GitPrep into Windows.
improve readme
Yuki Kimoto authored on 2013-08-28
12
* Only needs Perl 5.8.7+.
improve readme
Yuki Kimoto authored on 2013-10-08
13
* Smart HTTP support, you can pull and push via HTTP
14
* CGI support, and having built-in web server, Reverse proxy support.
improve readme
Yuki Kimoto authored on 2013-08-28
15
* SSL support.
improved README
Yuki Kimoto authored on 2013-03-29
16

            
improved install process
Yuki Kimoto authored on 2013-04-09
17
# Installation into Shared Server
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
18

            
improved install process
Yuki Kimoto authored on 2013-04-09
19
Shared Server must support **Linux/Unix**, **Apache**, **SuExec**,
20
**CGI**, and **PHP5(CGI mode)**.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
21

            
update readme
Yuki Kimoto authored on 2013-11-15
22
(*PHP* is not necessary, if PHP exists, the install process is easy
Update README.md
Matthew Musgrove authored on 2013-07-22
23
because you do not need to think about permissions.)
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
24

            
Update README.md
Matthew Musgrove authored on 2013-07-22
25
Many shared servers support these,
26
so you will be able to find a suitable server easily.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
27

            
28
## Download
29

            
Update README.md
Matthew Musgrove authored on 2013-07-22
30
First you need to download gitprep.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
31

            
fixed database file permissi...
Yuki Kimoto authored on 2013-04-19
32
https://github.com/yuki-kimoto/gitprep/archive/latest.zip
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
33

            
Update README.md
Matthew Musgrove authored on 2013-07-22
34
Expand the zip file. You will see the following directory.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
35

            
fixed database file permissi...
Yuki Kimoto authored on 2013-04-19
36
    gitprep-latest
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
37

            
Update README.md
Matthew Musgrove authored on 2013-07-22
38
Rename the gitprep-latest directory to gitprep.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
39

            
fixed database file permissi...
Yuki Kimoto authored on 2013-04-19
40
    gitprep-latest -> gitprep
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
41

            
improved install process
Yuki Kimoto authored on 2013-04-09
42
## Configuration
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
43

            
Update README.md
Matthew Musgrove authored on 2013-07-22
44
GitPrep needs the git command. You must install git by yourself.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
45

            
Update README.md
Matthew Musgrove authored on 2013-07-22
46
You must add the correct git command path to the **gitprep.conf** config file.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
47

            
48
    [basic]
49
    ;;; Git command path
fix mini bug
Yuki Kimoto authored on 2013-03-31
50
    git_bin=/home/yourname/local/bin/git
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
51

            
52
## Upload Server by FTP
53

            
54
You upload these directory into server document root by FTP.
55

            
56
## Setup
57

            
58
Access the following URL by browser.
59

            
fixed readme
Yuki Kimoto authored on 2013-03-31
60
    http://(Your host name)/gitprep/setup/setup.php
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
61

            
improved install process
Yuki Kimoto authored on 2013-04-09
62
(If you don't access PHP file or don't have PHP,
63
you can use CGI script
64
please set this CGI script permission to 755)
65

            
66
    http://(Your host name)/gitprep/setup/setup.cgi.
67

            
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
68
Click Setup button once and wait about 5 minutes.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
69

            
70
## Go to application
71

            
72
If you see result, click "Go to Application".
73

            
Update README.md
Matthew Musgrove authored on 2013-07-22
74
## Internal Server Error
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
75

            
Update README.md
Matthew Musgrove authored on 2013-07-22
76
If you receive an internal server error, look at the log file (gitprep/log/production.log)
77
to see what the problem occurred.
fixed git_bin not found bug
Yuki Kimoto authored on 2013-03-31
78

            
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
79
# Installation into own Unix/Linux Server
improved install process
Yuki Kimoto authored on 2013-04-09
80

            
Update README.md
Matthew Musgrove authored on 2013-07-22
81
GitPrep has its own web server,
82
so you can start using the application very easily.
83
This is much better than the way shown above
84
because you do not need to setup the Apache environment
85
and performance will be much better.
improved README
Yuki Kimoto authored on 2013-03-29
86

            
added cygwin case
Yuki Kimoto authored on 2013-05-14
87
(You can also install GitPrep into Cygwin.
88
If you want to install GitPrep into Cygwin,
89
gcc4 and make program are needed.)
90

            
improved README
Yuki Kimoto authored on 2013-03-29
91
## Create gitprep user
92

            
Update README.md
Matthew Musgrove authored on 2013-07-22
93
Create a **gitprep** user. This is not necessary, but recommended.
improved README
Yuki Kimoto authored on 2013-03-29
94

            
improved README
Yuki Kimoto authored on 2013-03-29
95
    useradd gitprep
96
    su - gitprep
97
    cd ~
98

            
improved README
Yuki Kimoto authored on 2013-03-29
99
## Download
improved README
Yuki Kimoto authored on 2013-03-29
100

            
Update README.md
Matthew Musgrove authored on 2013-07-22
101
Download tar.gz archive, expand it and change directory.
removed Mojoliciosu dependen...
Yuki Kimoto authored on 2013-03-29
102

            
fixed database file permissi...
Yuki Kimoto authored on 2013-04-19
103
    curl -kL https://github.com/yuki-kimoto/gitprep/archive/latest.tar.gz > gitprep-latest.tar.gz
104
    tar xf gitprep-latest.tar.gz
105
    mv gitprep-latest gitprep
improved install process
Yuki Kimoto authored on 2013-04-09
106
    cd gitprep
improved README
Yuki Kimoto authored on 2013-03-29
107

            
108
## Setup
109

            
Update README.md
Matthew Musgrove authored on 2013-07-22
110
To setup GitPrep, execute the following command. All of the needed modules will be installed.
improved README
Yuki Kimoto authored on 2013-03-29
111

            
improved install process
Yuki Kimoto authored on 2013-04-09
112
    ./setup.sh
113

            
114
## Test
115

            
Update README.md
Matthew Musgrove authored on 2013-07-22
116
Run the test to check if the setup process was successful or not.
improved install process
Yuki Kimoto authored on 2013-04-09
117

            
118
    prove t
119

            
Update README.md
Matthew Musgrove authored on 2013-07-22
120
If "All tests successful" is shown, the setup process was successful.
improved install process
Yuki Kimoto authored on 2013-04-09
121

            
122
## Configuration
123

            
124
Same as Shared Server's Configuration section.
improved README
Yuki Kimoto authored on 2013-03-29
125

            
126
## Operation
127

            
128
### Start
129

            
Update README.md
Matthew Musgrove authored on 2013-07-22
130
You can start the application by running the provided gitprep script.
131
The application is run in the background and the port is **10020** by default.
improved README
Yuki Kimoto authored on 2013-03-29
132

            
133
    ./gitprep
134

            
Update README.md
Matthew Musgrove authored on 2013-07-22
135
Then access the following URL.
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
136

            
improved README
Yuki Kimoto authored on 2013-03-29
137
    http://localhost:10020
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
138

            
Update README.md
Matthew Musgrove authored on 2013-07-22
139
If you want to change the port, edit gitprep.conf.
140
If you cannot access this port, you might change the firewall settings.
improved README
Yuki Kimoto authored on 2013-03-29
141

            
142
### Stop
143

            
Update README.md
Matthew Musgrove authored on 2013-07-22
144
You can stop the application by adding the **--stop** option.
improved README
Yuki Kimoto authored on 2013-03-29
145

            
146
    ./gitprep --stop
147

            
improve readme
Yuki Kimoto authored on 2013-06-24
148
### Operation from root user
improved README
Yuki Kimoto authored on 2013-03-29
149

            
Update README.md
Matthew Musgrove authored on 2013-07-22
150
You can manage the application from the root user.
improved README
Yuki Kimoto authored on 2013-03-29
151

            
Update README.md
Matthew Musgrove authored on 2013-07-22
152
Start the application
improved install process
Yuki Kimoto authored on 2013-04-09
153

            
fix readme
Yuki Kimoto authored on 2013-06-24
154
    sudo -u gitprep /home/gitprep/gitprep/gitprep
improved install process
Yuki Kimoto authored on 2013-04-09
155

            
Update README.md
Matthew Musgrove authored on 2013-07-22
156
Stop the application
improved install process
Yuki Kimoto authored on 2013-04-09
157

            
fix readme
Yuki Kimoto authored on 2013-06-24
158
    sudo -u gitprep /home/gitprep/gitprep/gitprep --stop
improved install process
Yuki Kimoto authored on 2013-04-09
159

            
Update README.md
Matthew Musgrove authored on 2013-07-22
160
If you want to start the application when the OS starts,
improve readme
Yuki Kimoto authored on 2013-06-24
161
add the start application command to **rc.local**(Linux).
improved install process
Yuki Kimoto authored on 2013-04-09
162

            
Update README.md
Matthew Musgrove authored on 2013-07-22
163
If you want to make it easy to manage gitprep,
164
then create a run script.
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
165

            
improved README
Yuki Kimoto authored on 2013-06-03
166
    mkdir -p /webapp
fix readme
Yuki Kimoto authored on 2013-06-24
167
    echo '#!/bin/sh' > /webapp/gitprep
cleanup and improve readme, ...
Yuki Kimoto authored on 2013-08-23
168
    echo 'su - gitprep -c "/home/gitprep/gitprep/gitprep $*"' >> /webapp/gitprep
fix readme
Yuki Kimoto authored on 2013-06-24
169
    chmod 755 /webapp/gitprep
improved install process
Yuki Kimoto authored on 2013-04-09
170

            
Update README.md
Matthew Musgrove authored on 2013-07-22
171
You can start and stop the application with the following command.
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
172

            
improved README
Yuki Kimoto authored on 2013-06-03
173
    # Start or Restart
174
    /webapp/gitprep
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
175

            
improved install process
Yuki Kimoto authored on 2013-04-09
176
    # Stop
improved README
Yuki Kimoto authored on 2013-06-03
177
    /webapp/gitprep --stop
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
178

            
improved install process
Yuki Kimoto authored on 2013-04-09
179
## Developer
improved README
Yuki Kimoto authored on 2013-03-29
180

            
Update README.md
Matthew Musgrove authored on 2013-07-22
181
If you are a developer, you can start the application in development mode.
improved README
Yuki Kimoto authored on 2013-03-29
182

            
fixed readme
Yuki Kimoto authored on 2013-03-31
183
    ./morbo
improved README
Yuki Kimoto authored on 2013-03-29
184

            
Update README.md
Matthew Musgrove authored on 2013-07-22
185
Then access the following URL.
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
186

            
improved README
Yuki Kimoto authored on 2013-03-29
187
    http://localhost:3000
improved install process
Yuki Kimoto authored on 2013-04-09
188

            
189
If you have git, it is easy to install from git.
190

            
191
    git clone git://github.com/yuki-kimoto/gitprep.git
192

            
Fix typos in README
Daniel Knittl-Frank authored on 2013-07-07
193
It is useful to write configuration in ***gitprep.my.conf***, not gitprep.conf.
improved install process
Yuki Kimoto authored on 2013-04-09
194

            
add faq
Yuki Kimoto authored on 2013-09-04
195
## FAQ
196

            
197
### blame don't work
198

            
199
In Gitprep, blame page use "git blame --line-porcelain". In old git, there is no --line-porcelain option.
improve readme
Yuki Kimoto authored on 2013-10-08
200
We don't know when --line-porcelain was added to git.
add faq
Yuki Kimoto authored on 2013-09-04
201
At least, blame page work well in git 1.8.2.1.
202

            
203
### How to upgrade GitPrep
204

            
add a little info to reduce ...
Sven Dowideit authored on 2013-11-23
205
It is very easy. you only overwrite all files except for "gitprep.conf".
add faq
Yuki Kimoto authored on 2013-09-04
206

            
207
If you want to upgrade by "git pull", you can do it.
208
you create "gitprep.my.conf" copied from "gitprep.my.conf",
209
and do "git pull"
210

            
add a little info to reduce ...
Sven Dowideit authored on 2013-11-23
211
If you get a rainbow unicorn t-rex error after upgrading, you might be missing
improve pod
Yuki Kimoto authored on 2013-11-23
212
a new CPAN dependency. Rerun the /setup/setup.php on brower
213
or rerun setup.sh on command line.
add a little info to reduce ...
Sven Dowideit authored on 2013-11-23
214

            
improve pod
Yuki Kimoto authored on 2013-11-23
215
### I can't push large repository by http protocol
add FAQ large repository can...
Yuki Kimoto authored on 2013-10-07
216

            
improve readme
Yuki Kimoto authored on 2013-10-08
217
Maybe http.postBuffer value of git config is small. Input the following command to increase this size.
add FAQ large repository can...
Yuki Kimoto authored on 2013-10-07
218

            
219
    git config http.postBuffer 104857600
220

            
add web site link
Yuki Kimoto authored on 2013-06-12
221
## Web Site
222

            
223
[GitPrep Web Site](http://perlcodesample.sakura.ne.jp/gitprep-site/)
224

            
fix pod
Yuki Kimoto authored on 2013-06-16
225
## Internally Using Library
add internally using project
Yuki Kimoto authored on 2013-06-16
226

            
227
* [Config::Tiny](http://search.cpan.org/dist/Config-Tiny/lib/Config/Tiny.pm)
228
* [DBD::SQLite](http://search.cpan.org/dist/DBD-SQLite/lib/DBD/SQLite.pm)
229
* [DBI](http://search.cpan.org/dist/DBI/DBI.pm)
230
* [DBIx::Connector](http://search.cpan.org/dist/DBIx-Connector/lib/DBIx/Connector.pm)
231
* [DBIx::Custom](http://search.cpan.org/dist/DBIx-Custom/lib/DBIx/Custom.pm)
232
* [Mojolicious](http://search.cpan.org/~kimoto/DBIx-Custom/lib/DBIx/Custom.pm)
233
* [Mojolicious::Plugin::INIConfig](http://search.cpan.org/dist/Mojolicious-Plugin-INIConfig/lib/Mojolicious/Plugin/INIConfig.pm)
234
* [mojo-legacy](https://github.com/jamadam/mojo-legacy)
235
* [Object::Simple](http://search.cpan.org/dist/Object-Simple/lib/Object/Simple.pm)
add Text::Markdown::Discount...
Yuki Kimoto authored on 2013-11-18
236
* [Text::Markdown::Discount](http://search.cpan.org/dist/Text-Markdown-Discount/lib/Text/Markdown/Discount.pm)
add internally using project
Yuki Kimoto authored on 2013-06-16
237
* [Validator::Custom](http://search.cpan.org/dist/Validator-Custom/lib/Validator/Custom.pm)
238

            
add WebDBViewer link
Yuki Kimoto authored on 2013-06-30
239
## Sister project
240

            
add Text::Markdown::Discount...
Yuki Kimoto authored on 2013-11-18
241
These are my Perl web application projects.
242

            
fix WebDBViewer link
Yuki Kimoto authored on 2013-11-18
243
* [WebDBViewer](http://perlcodesample.sakura.ne.jp/webdbviewer-site/) - Database viewer to see database information on web browser.
add Text::Markdown::Discount...
Yuki Kimoto authored on 2013-11-18
244
* [TaskDeal](http://perlcodesample.sakura.ne.jp/taskdeal-site/) - Setup or deploy multiple environments on web browser. Ruby Chef alternative tool.
add WebDBViewer link
Yuki Kimoto authored on 2013-06-30
245

            
improved install process
Yuki Kimoto authored on 2013-04-09
246
## Copyright & license
247

            
Copyright statement fix.
Siddharth Patil authored on 2013-08-27
248
Copyright 2012-2013 Yuki Kimoto. All rights reserved.
improved install process
Yuki Kimoto authored on 2013-04-09
249

            
250
This program is free software; you can redistribute it and/or modify it
251
under the same terms as Perl itself.