diff --git a/README.md b/README.md index 71e16dab..26244615 100644 --- a/README.md +++ b/README.md @@ -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 + ``` * 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 + ... + sudo supervisorctl restart + ``` + + Or restart Systemd workers (If you use workers and Systemd): + + ```bash + sudo systemctl restart + ... + sudo systemctl restart + ``` Configuring project -------------------