OSDN Git Service

Add logrotate config to update docs
authorRobert Schilling <schilling.ro@gmail.com>
Fri, 18 Oct 2013 13:22:23 +0000 (15:22 +0200)
committerRobert Schilling <schilling.ro@gmail.com>
Fri, 18 Oct 2013 13:22:23 +0000 (15:22 +0200)
doc/update/6.1-to-6.2.md

index b46ade1..e7f6c2a 100644 (file)
@@ -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: