- Download and make it executable
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
sudo cp MailHog_linux_amd64 /usr/local/bin/mailhog
sudo chmod +x /usr/local/bin/mailhog
- Make MailHog as a service
#!/usr/bin/env bash | |
PROD_ENV="ent-tx3iahfl3v2uk-production-vohbr3y@ssh.us-3.magento.cloud" | |
STAGE_ENV="ent-tx3iahfl3v2uk-staging-5em2ouy@ssh.us-3.magento.cloud" | |
INT_ENV="tx3iahfl3v2uk-integration-5ojmyuq--mymagento@ssh.us-3.magento.cloud" | |
TIMEFORMAT=%R | |
db_data_reg="cat app/etc/env.php | grep -A 10 \"'db'\"" | |
try() { | |
"$@" || { echo "command failed, with exit code $?"; exit 1; } |
<?php | |
/** | |
* This script can be used for generating PHP model for PDT. | |
* It builds PHP functions according to the loaded extensions in running PHP, | |
* using complementary information gathered from PHP.net documentation | |
* | |
* @author Michael Spector <michael@zend.com> | |
*/ | |
if (version_compare(phpversion(), "5.0.0") < 0) { |