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
# Once | |
# https://docs.platform.sh/frameworks/drupal7/faq.html | |
drush dl registry_rebuild-7.x-2.3 --destination=/app/tmp | |
sed -i 's/, define_drupal_root()/, '"'"'\/app\/public'"'"'/' /app/tmp/registry_rebuild/registry_rebuild.php | |
# Afterwards | |
cd /app/public | |
php ../tmp/registry_rebuild/registry_rebuild.php | |
drush updb -y | |
drush dis -y securepages |
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
Afganistán | |
Albania | |
Alemania | |
Andorra | |
Angola | |
Antigua y Barbuda | |
Arabia Saudita | |
Argelia | |
Argentina | |
Armenia |
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
#!/bin/bash | |
openssl req \ | |
-newkey rsa:2048 \ | |
-x509 \ | |
-nodes \ | |
-keyout localhost.key \ | |
-new \ | |
-out localhost.crt \ | |
-subj /CN=dev.localhost \ |
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
# Only the necessary entries are on this file. | |
# IT IS NOT A COMPLETE .platform.app.yaml FILE. | |
# The mounts that will be performed when the package is deployed. | |
mounts: | |
"/deploy": "shared:files/deploy" | |
hooks: | |
deploy: | | |
DEPLOY_FILE=/app/deploy/deploy.url |
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
<?php | |
add_action('all', function ($tag) { | |
if (preg_match('/woocommerce_/', $tag)) { | |
file_put_contents ('/tmp/wordpress.txt', $_SERVER['REQUEST_URI'] . '-' . $_SERVER['REQUEST_TIME'] . ': '. $tag . "\n", FILE_APPEND); | |
} | |
}); |