Improved documentation about update PHP Censor.
This commit is contained in:
parent
ab2ec33642
commit
fcb6cef295
47
README.md
47
README.md
|
@ -120,23 +120,48 @@ Updating
|
||||||
|
|
||||||
* Go to your PHP Censor directory (to `/var/www/php-censor.local` for example):
|
* Go to your PHP Censor directory (to `/var/www/php-censor.local` for example):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
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 pull -r
|
git checkout master
|
||||||
```
|
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
|
||||||
-------------------
|
-------------------
|
||||||
|
|
Loading…
Reference in a new issue