Improved documentation about update PHP Censor.

This commit is contained in:
Dmitry Khomutov 2017-08-30 20:28:30 +07:00
parent ab2ec33642
commit fcb6cef295
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9

View file

@ -120,23 +120,48 @@ Updating
* Go to your PHP Censor directory (to `/var/www/php-censor.local` for example):
```bash
cd /var/www/php-censor.local
```
```bash
cd /var/www/php-censor.local
```
* Pull the latest code by Git:
* Pull the latest code from repository by Git (If you want latest `master` branch):
```bash
git pull -r
```
```bash
git checkout master
git pull -r
```
Or pull latest version:
```bash
git fetch
git checkout <version>
```
* Update the Composer dependencies: `composer install`
* Update the PHP Censor database scheme:
* Update the database scheme:
```bash
./bin/console php-censor-migrations:migrate
```
```bash
./bin/console php-censor-migrations:migrate
```
* Restart Supervisord workers (If you use workers and Supervisord):
```bash
sudo supervisorctl status
sudo supervisorctl restart <worker:worker_00>
...
sudo supervisorctl restart <worker:worker_nn>
```
Or restart Systemd workers (If you use workers and Systemd):
```bash
sudo systemctl restart <worker@1.service>
...
sudo systemctl restart <worker@n.service>
```
Configuring project
-------------------