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

@ -124,20 +124,45 @@ Updating
cd /var/www/php-censor.local 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 ```bash
git checkout master
git pull -r git pull -r
``` ```
Or pull latest version:
```bash
git fetch
git checkout <version>
```
* Update the Composer dependencies: `composer install` * Update the Composer dependencies: `composer install`
* Update the PHP Censor database scheme: * Update the database scheme:
```bash ```bash
./bin/console php-censor-migrations:migrate ./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 Configuring project
------------------- -------------------