From 3ee4701316a707d2b8821bf850000bcd1a11af6a Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Fri, 18 Oct 2013 15:22:23 +0200 Subject: [PATCH] Add logrotate config to update docs --- doc/update/6.1-to-6.2.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/doc/update/6.1-to-6.2.md b/doc/update/6.1-to-6.2.md index b46ade1be18..e7f6c2a5ba7 100644 --- a/doc/update/6.1-to-6.2.md +++ b/doc/update/6.1-to-6.2.md @@ -24,7 +24,14 @@ sudo -u git -H git fetch sudo -u git -H git checkout 6-2-stable ``` -### 3. Install libs, migrations, etc. +### 3. Install additional packages + +```bash +# Add support for lograte for better log file handling +sudo apt-get install logrotate +``` + +### 4. Install libs, migrations, etc. ```bash cd /home/git/gitlab @@ -42,7 +49,7 @@ sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production ``` -### 4. Update config files +### 5. Update config files * 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. * 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 sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb ``` * Uncomment `config.middleware.use Rack::Attack` in `/home/git/gitlab/config/application.rb` +* Set up logrotate +```bash +sudo cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab +``` -### 5. Update Init script +### 6. Update Init script ```bash sudo rm /etc/init.d/gitlab @@ -60,12 +71,12 @@ sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlabhq/6 sudo chmod +x /etc/init.d/gitlab ``` -### 6. Start application +### 7. Start application sudo service gitlab start sudo service nginx restart -### 7. Check application status +### 8. Check application status Check if GitLab and its environment are configured correctly: