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 | |
/** | |
* First things first | |
* | |
* get the mailchimp api php package (you can use composer or just download it) | |
* | |
* https://packagist.org/packages/mailchimp/mailchimp | |
* | |
* Put it somewhere that you can access it and then instantiate it. (see the require_once line) | |
* |
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 | |
##change website.com to your website | |
APP_PATH=/var/www/website.com | |
exit_with_error() { | |
echo "[DEPLOY] !!!!!!!!!!!!!!!!!!!! An error has occurred !!!!!!!!!!!!!!!!!!!!!!!" | |
exit 1 | |
} |