提交 9a92e53f 编写于 作者: B Ben Bodenmiller

stop gitlab before backup

Stopping gitlab before backup ensures that backup has everything before upgrade incase something goes wrong. Also remove extra cd.
上级 564c4138
# From 7.3 to 7.4 # From 7.3 to 7.4
### 0. Backup ### 0. Stop server
```bash sudo service gitlab stop
cd /home/git/gitlab
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
```
### 1. Stop server ### 1. Backup
```bash ```bash
sudo service gitlab stop cd /home/git/gitlab
``` sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
### 2. Get latest code ### 2. Get latest code
```bash ```bash
cd /home/git/gitlab
sudo -u git -H git fetch --all sudo -u git -H git fetch --all
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册