У меня была установка WordPress сайта с помощью Trellis. Сначала я настроил сервер и развернул его без шифрования vault.yml.
Когда все заработало, я сменил пароли в vault.yml и зашифровал файл. Но мое развертывание не удается сейчас.
И я получаю следующую ошибку -
TASK [deploy : WordPress Installed?]
**************************
System info:
Ansible 2.6.3; Darwin
Trellis version (per changelog): "Allow customizing Nginx `worker_connections`"
---------------------------------------------------
non-zero return code
Error: Error establishing a database connection. This either means that
the username and password information in your `wp-config.php` file is
incorrect or we can’t contact the database server at `localhost`. This
could mean your host’s database server is down.
fatal: [mysite.org]: FAILED! => {"changed": false,
"cmd": ["wp", "core", "is-installed", "--skip-plugins", "--skip-
themes", "--require=/srv/www/mysite.org/shared/tmp_multisite_constants.php"], "delta":
"0:00:00.224955", "end": "2019-01-04 16:59:01.531111",
"failed_when_result": true, "rc": 1, "start": "2019-01-04
16:59:01.306156", "stderr_lines": ["Error: Error establishing a
database connection. This either means that the username and password
information in your `wp-config.php` file is incorrect or we can’t
contact the database server at `localhost`. This could mean your host’s
database server is down."], "stdout": "", "stdout_lines": []}
to retry, use: --limit
@/Users/praneethavelamuri/Desktop/path/to/my/project/trellis/deploy.retry
Есть ли какой-то шаг, который я пропустил? Я следовал за этими шагами -
- ansible-playbook server.yml -e env = staging
- . / Bin / deploy.sh staging mysite.org
- смена паролей в staging / vault.yml
- установить пароль хранилища
- сообщить пароль о пароле
- зашифровать файл
- зафиксировать файл и нажать на репо
- повторно разверните и тогда я получу ошибку!