Commit 1309a40b5e037ed3da8290d0d58534d75924bd42
1 parent
c3b9774f
Exists in
master
and in
4 other branches
Update installation guide
Showing
1 changed file
with
14 additions
and
6 deletions
Show diff stats
doc/install/installation.md
| ... | ... | @@ -52,14 +52,14 @@ edited by hand. But, you can use any editor you like instead. |
| 52 | 52 | |
| 53 | 53 | Install the required packages: |
| 54 | 54 | |
| 55 | - sudo apt-get install -y wget curl build-essential checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libreadline6-dev libc6-dev libssl-dev zlib1g-dev libicu-dev redis-server openssh-server git-core libyaml-dev postfix | |
| 55 | + sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev wget curl git-core openssh-server redis-server postfix checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev | |
| 56 | 56 | |
| 57 | 57 | Make sure you have the right version of Python installed. |
| 58 | 58 | |
| 59 | 59 | # Install Python |
| 60 | 60 | sudo apt-get install python |
| 61 | 61 | |
| 62 | - # Make sure that Python is 2.x (3.x is not supported at the moment) | |
| 62 | + # Make sure that Python is 2.5+ (3.x is not supported at the moment) | |
| 63 | 63 | python --version |
| 64 | 64 | |
| 65 | 65 | # If it's Python 3 you might need to install Python 2 separately |
| ... | ... | @@ -136,10 +136,10 @@ GitLab assumes *full and unshared* control over this Gitolite installation. |
| 136 | 136 | # ... and use it as the admin key for the Gitolite setup |
| 137 | 137 | sudo -u git -H sh -c "PATH=/home/git/bin:$PATH; gitolite setup -pk /home/git/gitlab.pub" |
| 138 | 138 | |
| 139 | -Fix the directory permissions for the repository: | |
| 139 | +Fix the directory permissions for the repositories: | |
| 140 | 140 | |
| 141 | 141 | # Make sure the repositories dir is owned by git and it stays that way |
| 142 | - sudo chmod -R ug+rwXs /home/git/repositories/ | |
| 142 | + sudo chmod -R ug+rwXs,o-rwx /home/git/repositories/ | |
| 143 | 143 | sudo chown -R git:git /home/git/repositories/ |
| 144 | 144 | |
| 145 | 145 | ## Test if everything works so far |
| ... | ... | @@ -187,6 +187,12 @@ do so with caution! |
| 187 | 187 | # host serving GitLab where necessary |
| 188 | 188 | sudo -u gitlab -H vim config/gitlab.yml |
| 189 | 189 | |
| 190 | + # Make sure GitLab can write to the log/ and tmp/ directories | |
| 191 | + sudo chown -R gitlab log/ | |
| 192 | + sudo chown -R gitlab tmp/ | |
| 193 | + sudo chmod -R u+rwX log/ | |
| 194 | + sudo chmod -R u+rwX tmp/ | |
| 195 | + | |
| 190 | 196 | # Copy the example Unicorn config |
| 191 | 197 | sudo -u gitlab -H cp config/unicorn.rb.example config/unicorn.rb |
| 192 | 198 | |
| ... | ... | @@ -209,7 +215,7 @@ used for the `email.from` setting in `config/gitlab.yml`) |
| 209 | 215 | sudo -u gitlab -H git config --global user.name "GitLab" |
| 210 | 216 | sudo -u gitlab -H git config --global user.email "gitlab@localhost" |
| 211 | 217 | |
| 212 | -## Setup GitLab hooks | |
| 218 | +## Setup GitLab Hooks | |
| 213 | 219 | |
| 214 | 220 | sudo cp ./lib/hooks/post-receive /home/git/.gitolite/hooks/common/post-receive |
| 215 | 221 | sudo chown git:git /home/git/.gitolite/hooks/common/post-receive |
| ... | ... | @@ -227,7 +233,7 @@ Check if GitLab and its environment is configured correctly: |
| 227 | 233 | |
| 228 | 234 | To make sure you didn't miss anything run a more thorough check with: |
| 229 | 235 | |
| 230 | - sudo -u gitlab -H bundle exec rake gitlab:app:status RAILS_ENV=production | |
| 236 | + sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production | |
| 231 | 237 | |
| 232 | 238 | If you are all green: congratulations, you successfully installed GitLab! |
| 233 | 239 | Although this is the case, there are still a few steps to go. |
| ... | ... | @@ -248,6 +254,8 @@ Make GitLab start on boot: |
| 248 | 254 | Start your GitLab instance: |
| 249 | 255 | |
| 250 | 256 | sudo service gitlab start |
| 257 | + # or | |
| 258 | + sudo /etc/init.d/gitlab restart | |
| 251 | 259 | |
| 252 | 260 | |
| 253 | 261 | # 7. Nginx | ... | ... |