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
container_commands: | |
01_upload_to_cdn: | |
command: | | |
export REGION=`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document |grep region |cut -d: -f2 | sed -e 's/[\",]//g'` | |
export INCLUDES=`echo $W3TC_CF_FILE_EXTENSIONS | sed 's/;/\ /g'` | |
for INC in $INCLUDES; do | |
aws s3 sync wp-includes/ s3://${W3TC_CF_BUCKET_NAME}/wp-includes/ --exclude "*" --include "${INC}" --region $REGION | |
aws s3 sync wp-content/ s3://${W3TC_CF_BUCKET_NAME}/wp-content/ --exclude "*" --include "${INC}" --region $REGION | |
done |
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
machine: | |
<machine_config> | |
dependencies: | |
pre: | |
- pip install awsebcli | |
- <other_project_dependencies> | |
database: | |
<database_setup> | |
test: | |
<test_config> |
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
container_commands: | |
01_install_pma: | |
test: test -n "$PMA_VER" && test ! -f /tmp/phpmyadmin.tar.gz | |
command: | | |
cd /tmp | |
wget https://files.phpmyadmin.net/phpMyAdmin/${PMA_VER}/phpMyAdmin-${PMA_VER}-all-languages.tar.gz | |
wget https://files.phpmyadmin.net/phpMyAdmin/${PMA_VER}/phpMyAdmin-${PMA_VER}-all-languages.tar.gz.sha1 | |
cd /tmp && sha1sum --check phpMyAdmin-${PMA_VER}-all-languages.tar.gz.sha1 | |
if [[ $? == 0 ]] | |
then |