Commit 898e2acd33edbaa3eec689542150272f605330b1
Exists in
master
and in
4 other branches
Merge pull request #5363 from Razer6/logrote_for_update_docs
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,7 +24,14 @@ sudo -u git -H git fetch | ||
| 24 | sudo -u git -H git checkout 6-2-stable | 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 | ```bash | 36 | ```bash |
| 30 | cd /home/git/gitlab | 37 | cd /home/git/gitlab |
| @@ -42,7 +49,7 @@ sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production | @@ -42,7 +49,7 @@ sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production | ||
| 42 | sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production | 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 | * 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. | 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 | * 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. | 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,8 +58,12 @@ sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production | ||
| 51 | sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb | 58 | sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb |
| 52 | ``` | 59 | ``` |
| 53 | * Uncomment `config.middleware.use Rack::Attack` in `/home/git/gitlab/config/application.rb` | 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 | ```bash | 68 | ```bash |
| 58 | sudo rm /etc/init.d/gitlab | 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,12 +71,12 @@ sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlabhq/6 | ||
| 60 | sudo chmod +x /etc/init.d/gitlab | 71 | sudo chmod +x /etc/init.d/gitlab |
| 61 | ``` | 72 | ``` |
| 62 | 73 | ||
| 63 | -### 6. Start application | 74 | +### 7. Start application |
| 64 | 75 | ||
| 65 | sudo service gitlab start | 76 | sudo service gitlab start |
| 66 | sudo service nginx restart | 77 | sudo service nginx restart |
| 67 | 78 | ||
| 68 | -### 7. Check application status | 79 | +### 8. Check application status |
| 69 | 80 | ||
| 70 | Check if GitLab and its environment are configured correctly: | 81 | Check if GitLab and its environment are configured correctly: |
| 71 | 82 |