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
ES_HOST='elasticsearch-host' # for example 127.0.0.1 | |
ES_PORT='elasticsearch-port' # default 9200 | |
# get indices | |
curl $ES_HOST:$ES_PORT/_cat/indices | |
ES_INDEX='index-name' | |
# get first 5 results from empty | |
curl $ES_HOST:$ES_PORT/$ES_INDEX/_search | jq . |
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
# get crypt key from remote server | |
ssh <user>@<server> -C 'grep "'\''key'\''" ~/app/etc/env.php' | awk '{ print $3 }' | |
# substitute local env.php crypt key with remote crypt key | |
# on vagrant | |
mr dev:console | |
$encryptor = $di->get(\Magento\Framework\Encryption\EncryptorInterface::class); | |
$encryptor->decrypt('value from remote database core_config_data table goes here'); |
NewerOlder