Skip to content

Commit

Permalink
chore: shift config duties to composer
Browse files Browse the repository at this point in the history
Rename env.example to env.dist
Create wp-cli.yml.dist file to protect sensitive data
  • Loading branch information
Genyus committed Jul 24, 2023
1 parent 24d4655 commit 077c87e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ web/.htaccess
!vendor/.gitkeep

# WP-CLI
wp-cli.local.yml
wp-cli*.yml

# macOS
**/.DS_Store
Expand Down
1 change: 0 additions & 1 deletion .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ services:
run:
- composer install
- npm install
- if [ ! -e .env ]; then cp .env.example .env; fi
run_as_root:
- .lando/scripts/xdebug.sh develop,debug
overrides:
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@
],
"post-install-cmd": [
"@configure-ssp",
"if [ ! -e .env ]; then cp .env.dist .env; fi",
"if [ ! -e wp_cli.yml ]; then cp wp-cli.yml.dist wp-cli.yml; fi",
"([ -f .env ] && grep -Eq \"WP_ENV=['\\\"]?staging['\\\"]?\" .env && mv web/.htaccess web/.htaccess.default && mv web/.htaccess.staging web/.htaccess) || true"
],
"post-update-cmd": [
Expand Down
File renamed without changes.

0 comments on commit 077c87e

Please sign in to comment.