Commit 3ee4701316a707d2b8821bf850000bcd1a11af6a

Authored by Robert Schilling
1 parent 05ca0a31

Add logrotate config to update docs

Showing 1 changed file with 16 additions and 5 deletions   Show diff stats
doc/update/6.1-to-6.2.md
... ... @@ -24,7 +24,14 @@ sudo -u git -H git fetch
24 24 sudo -u git -H git checkout 6-2-stable
25 25 ```
26 26  
27   -### 3. Install libs, migrations, etc.
  27 +### 3. Install additional packages
  28 +
  29 +```bash
  30 +# Add support for lograte for better log file handling
  31 +sudo apt-get install logrotate
  32 +```
  33 +
  34 +### 4. Install libs, migrations, etc.
28 35  
29 36 ```bash
30 37 cd /home/git/gitlab
... ... @@ -42,7 +49,7 @@ sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
42 49 sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
43 50 ```
44 51  
45   -### 4. Update config files
  52 +### 5. Update config files
46 53  
47 54 * Make `/home/git/gitlab/config/gitlab.yml` same as https://github.com/gitlabhq/gitlabhq/blob/6-2-stable/config/gitlab.yml.example but with your settings.
48 55 * Make `/home/git/gitlab/config/unicorn.rb` same as https://github.com/gitlabhq/gitlabhq/blob/6-2-stable/config/unicorn.rb.example but with your settings.
... ... @@ -51,8 +58,12 @@ sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
51 58 sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb
52 59 ```
53 60 * Uncomment `config.middleware.use Rack::Attack` in `/home/git/gitlab/config/application.rb`
  61 +* Set up logrotate
  62 +```bash
  63 +sudo cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab
  64 +```
54 65  
55   -### 5. Update Init script
  66 +### 6. Update Init script
56 67  
57 68 ```bash
58 69 sudo rm /etc/init.d/gitlab
... ... @@ -60,12 +71,12 @@ sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlabhq/6
60 71 sudo chmod +x /etc/init.d/gitlab
61 72 ```
62 73  
63   -### 6. Start application
  74 +### 7. Start application
64 75  
65 76 sudo service gitlab start
66 77 sudo service nginx restart
67 78  
68   -### 7. Check application status
  79 +### 8. Check application status
69 80  
70 81 Check if GitLab and its environment are configured correctly:
71 82  
... ...