Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-09-04 21:50:00 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-09-04 21:50:00 +0400
commit42032956bd4d51bd954762a6f1192f20d6375885 (patch)
treed8895e64645a20bd535f065885360e3f1c2828f7 /doc/installation.md
parentd59d2a197e5ffb0231f97b0ef503e12e8d383709 (diff)
Cleaner install section for nginx, unicorn
Diffstat (limited to 'doc/installation.md')
-rw-r--r--doc/installation.md19
1 files changed, 9 insertions, 10 deletions
diff --git a/doc/installation.md b/doc/installation.md
index 462fbc573bf..327fc192822 100644
--- a/doc/installation.md
+++ b/doc/installation.md
@@ -246,18 +246,18 @@ You can login via web using admin generated with setup:
# Nginx && Unicorn
-### Install Nginx
-
- sudo apt-get install nginx
-
-## Unicorn
+## 1. Unicorn
cd /home/gitlab/gitlab
sudo -u gitlab cp config/unicorn.rb.orig config/unicorn.rb
sudo -u gitlab bundle exec unicorn_rails -c config/unicorn.rb -E production -D
-Add GitLab to nginx sites & change with your host specific settings
+## 2. Nginx
+
+ # Install first
+ sudo apt-get install nginx
+ # Add GitLab to nginx sites & change with your host specific settings
sudo wget https://raw.github.com/gitlabhq/gitlab-recipes/master/nginx/gitlab -P /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/gitlab /etc/nginx/sites-enabled/gitlab
@@ -266,16 +266,15 @@ Add GitLab to nginx sites & change with your host specific settings
# of the host serving GitLab.
sudo vim /etc/nginx/sites-enabled/gitlab
-Restart nginx:
+ # Restart nginx:
/etc/init.d/nginx restart
+## 3. Init script
+
Create init script in /etc/init.d/gitlab:
sudo wget https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab -P /etc/init.d/
-
-Adding permission:
-
sudo chmod +x /etc/init.d/gitlab
GitLab autostart: