diff options
author | Robert Schilling <schilling.ro@gmail.com> | 2013-10-18 15:22:23 +0200 |
---|---|---|
committer | Robert Schilling <schilling.ro@gmail.com> | 2013-10-18 15:22:23 +0200 |
commit | 3ee4701316a707d2b8821bf850000bcd1a11af6a (patch) | |
tree | dcb1e8a8203b33424510ea6562013099c09e3e96 /doc/update/6.1-to-6.2.md | |
parent | 05ca0a31476497d8de360bd1303498ffc1379a5c (diff) | |
download | gitlab-ce-3ee4701316a707d2b8821bf850000bcd1a11af6a.tar.gz |
Add logrotate config to update docs
Diffstat (limited to 'doc/update/6.1-to-6.2.md')
-rw-r--r-- | doc/update/6.1-to-6.2.md | 21 |
1 files 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: |