Add logrotate config to update docs
This commit is contained in:
parent
05ca0a3147
commit
3ee4701316
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue