-
-
Save newloong/814f62b1bf9542b1538b1c97c9343019 to your computer and use it in GitHub Desktop.
Add wp language files on trellis deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# add share-after hook: | |
vars: | |
deploy_build_before: "{{ playbook_dir }}/deploy-hooks/build-before.yml" | |
deploy_build_after: "{{ playbook_dir }}/roles/deploy/hooks/build-after.yml" | |
deploy_share_after: "{{ playbook_dir }}/deploy-hooks/share-after.yml" | |
deploy_finalize_before: "{{ playbook_dir }}/roles/deploy/hooks/finalize-before.yml" | |
deploy_finalize_after: "{{ playbook_dir }}/roles/deploy/hooks/finalize-after.yml" | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wordpress_sites: | |
example.com: | |
site_hosts: | |
- canonical: staging.example.com | |
# redirects: | |
# - otherdomain.com | |
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root) | |
repo: git@github.com:example/example.com.git # replace with your Git repo URL | |
repo_subtree_path: site # relative path to your Bedrock/WP directory in your repo | |
branch: master | |
multisite: | |
enabled: false | |
ssl: | |
enabled: false | |
provider: letsencrypt | |
cache: | |
enabled: false | |
# add languages list, entries must be language codes as used by wp: | |
languages: | |
- de_DE | |
- fr_FR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# add languages folder to project_shared_children: | |
project_shared_children: | |
- path: web/app/uploads | |
src: uploads | |
- path: web/app/languages | |
src: languages | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment