Commit c8fe07ed322eaa2f6d093d73d8c9ae6b36dbd758

Authored by randx
Committed by Dmitriy Zaporozhets
1 parent 8f3adf9f

version 2

Showing 1 changed file with 44 additions and 47 deletions   Show diff stats
doc/installation.md
@@ -51,31 +51,12 @@ The basic installation will provide you a GitLab setup with options: @@ -51,31 +51,12 @@ The basic installation will provide you a GitLab setup with options:
51 51
52 The installation consists of next steps: 52 The installation consists of next steps:
53 53
54 -1. Install packages / dependencies  
55 -2. Install ruby  
56 -3. Install Gitolite  
57 -4. Install mysql and create db  
58 -5. Install and configure GitLab.  
59 -6. nginx + unicorn  
60 -7. service gitlab  
61 -  
62 -> - - -  
63 -> The first 3 steps of this guide can be easily skipped by executing an install script:  
64 ->  
65 -> # Install curl and sudo  
66 -> apt-get install curl sudo  
67 ->  
68 -> # 3 steps in 1 command :)  
69 -> curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/debian_ubuntu.sh | sh  
70 ->  
71 -> Now you can go to [Step 4](#4-install-gitlab-and-configuration-check-status-configuration)  
72 ->  
73 -> Or if you are installing on Amazon Web Services using Ubuntu 12.04 you can do all steps (1 to 6) at once with:  
74 ->  
75 -> curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/debian_ubuntu_aws.sh | sh  
76 ->  
77 -> for more detailed instructions read the HOWTO section of [the script](https://github.com/gitlabhq/gitlab-recipes/blob/master/install/debian_ubuntu_aws.sh)  
78 -> - - - 54 +1. packages / dependencies
  55 +2. ruby
  56 +3. gitolite
  57 +4. mysql
  58 +5. GitLab.
  59 +6. nginx
79 60
80 61
81 # 1. Install packages 62 # 1. Install packages
@@ -216,6 +197,11 @@ and ensure you have followed all of the above steps carefully. @@ -216,6 +197,11 @@ and ensure you have followed all of the above steps carefully.
216 197
217 sudo -u gitlab bundle exec rake gitlab:app:setup RAILS_ENV=production 198 sudo -u gitlab bundle exec rake gitlab:app:setup RAILS_ENV=production
218 199
  200 +#### Copy unicorn config
  201 +
  202 + cd /home/gitlab/gitlab
  203 + sudo -u gitlab cp config/unicorn.rb.example config/unicorn.rb
  204 +
219 #### Setup GitLab hooks 205 #### Setup GitLab hooks
220 206
221 sudo cp ./lib/hooks/post-receive /home/git/.gitolite/hooks/common/post-receive 207 sudo cp ./lib/hooks/post-receive /home/git/.gitolite/hooks/common/post-receive
@@ -243,16 +229,25 @@ Checking status: @@ -243,16 +229,25 @@ Checking status:
243 UMASK for .gitolite.rc is 0007? ............YES 229 UMASK for .gitolite.rc is 0007? ............YES
244 /home/git/share/gitolite/hooks/common/post-receive exists? ............YES 230 /home/git/share/gitolite/hooks/common/post-receive exists? ............YES
245 231
246 -If you got all YES - congratulations! You can go to the next step. 232 +If you got all YES - congratulations! You can run a GitLab app.
247 233
248 -# 6. nginx + unicorn 234 +### init script
249 235
250 -## 1. Unicorn 236 +Create init script in /etc/init.d/gitlab:
  237 +
  238 + sudo wget https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab -P /etc/init.d/
  239 + sudo chmod +x /etc/init.d/gitlab
  240 +
  241 +GitLab autostart:
  242 +
  243 + sudo update-rc.d gitlab defaults 21
  244 +
  245 +### Now you should start GitLab application:
  246 +
  247 + sudo service gitlab start
251 248
252 - cd /home/gitlab/gitlab  
253 - sudo -u gitlab cp config/unicorn.rb.example config/unicorn.rb  
254 249
255 -## 2. Nginx 250 +# 7. Nginx
256 251
257 # Install first 252 # Install first
258 sudo apt-get install nginx 253 sudo apt-get install nginx
@@ -270,22 +265,7 @@ If you got all YES - congratulations! You can go to the next step. @@ -270,22 +265,7 @@ If you got all YES - congratulations! You can go to the next step.
270 sudo /etc/init.d/nginx restart 265 sudo /etc/init.d/nginx restart
271 266
272 267
273 -  
274 -# 7. service gitlab  
275 -  
276 -Create init script in /etc/init.d/gitlab:  
277 -  
278 - sudo wget https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab -P /etc/init.d/  
279 - sudo chmod +x /etc/init.d/gitlab  
280 -  
281 -GitLab autostart:  
282 -  
283 - sudo update-rc.d gitlab defaults 21  
284 -  
285 -Now you can start GitLab like:  
286 -  
287 - sudo service gitlab start  
288 - 268 +# Done! Visit **YOUR_SERVER_FQDN** for gitlab instance
289 269
290 You can login via web using admin generated with setup: 270 You can login via web using admin generated with setup:
291 271
@@ -296,6 +276,23 @@ You can login via web using admin generated with setup: @@ -296,6 +276,23 @@ You can login via web using admin generated with setup:
296 276
297 # Advanced setup tips: 277 # Advanced setup tips:
298 278
  279 +> - - -
  280 +> The first 3 steps of this guide can be easily skipped by executing an install script:
  281 +>
  282 +> # Install curl and sudo
  283 +> apt-get install curl sudo
  284 +>
  285 +> # 3 steps in 1 command :)
  286 +> curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/debian_ubuntu.sh | sh
  287 +>
  288 +> Now you can go to [Step 4](#4-install-gitlab-and-configuration-check-status-configuration)
  289 +>
  290 +> Or if you are installing on Amazon Web Services using Ubuntu 12.04 you can do all steps (1 to 6) at once with:
  291 +>
  292 +> curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/debian_ubuntu_aws.sh | sh
  293 +>
  294 +> for more detailed instructions read the HOWTO section of [the script](https://github.com/gitlabhq/gitlab-recipes/blob/master/install/debian_ubuntu_aws.sh)
  295 +> - - -
299 296
300 ## Customizing Resque's Redis connection 297 ## Customizing Resque's Redis connection
301 298