This file contains hidden or 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
| # This GitHub workflow will build a WordPress Bedrock site and deploy it to a shared server (french one: O2Switch, but URLs can be adapted) using SSH | |
| # Actions secrets are used to store sensitive information: | |
| # - SSH_PRIVATE_KEY: The private key used to authenticate with the remote server | |
| # - REMOTE_HOST: The hostname of the remote server | |
| # - REMOTE_USER: The username used to authenticate with the remote server | |
| # - REMOTE_PROD_TARGET: The path on the remote server where the site will be deployed to | |
| # - REMOTE_PREPROD_TARGET: The path on the remote server where the site will be deployed to | |
| # - URL_ENCODED_PASSWORD: The password used to authenticate with the remote server, URL encoded (e.g. using https://www.urlencoder.org/) | |
| # Workflow triggers on pushes to the develop and master branches: | |
| # - On the develop branch, the site is deployed to the preprod target |
This file contains hidden or 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
| <?php | |
| use Automattic\WooCommerce\Blocks\Package; | |
| /* | |
| Plugin Name: Remove WooCommerce patterns | |
| Version: 1.0.0 | |
| Plugin URI: https://mariecomet.fr/ | |
| Description: Remove all WooCommerce patterns | |
| Author: Marie Comet | |
| Author URI: https://mariecomet.fr/ |
This file contains hidden or 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
| cd C:\laragon\usr\bin && curl -L -O https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && echo @ECHO OFF > wp.bat && echo php "%~dp0wp-cli.phar" %* >> wp.bat |
This file contains hidden or 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
| <?php | |
| // PHP memory limit for this site | |
| define( 'WP_MEMORY_LIMIT', '128M' ); | |
| define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit. | |
| // Database | |
| define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database. | |
| define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users) | |
| // Explicitely setting url |
This file contains hidden or 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
| // Run this from the command line. | |
| // h/t: http://superuser.com/questions/91935/how-to-chmod-755-all-directories-but-no-file-recursively#answer-91966 | |
| // add read/execute to world, remove write | |
| chmod -R u+rwX,g+rwX,o+rX-w path/ | |
| // remove read/write/execute from world | |
| chmod -R u+rwX,g+rwX,o-rwX path/ |