Giter Site home page Giter Site logo

staticpress-s3's Issues

再構築時に一部のディレクトリを除外したい

AMIMOTO AMIを使ってEC2+RDS+Wordpress+S3の構成をAWSで作成いたしました。

再構築する際にauthorやwp-content/pluginsなどのフォルダを除外したいです。

いろいろ調べ、以下を/wp-content/plugins/staticpress/plugin.phpの末尾に
記述すれば除外できるというサイトを見つけたのですが、
実際に記述して再構築を行うとエラーになり、再構築自体が実行されませんでした。

add_action('StaticPress::file_put', 'static_rm', 1);
function static_rm($file_dest, $url){
if(strstr($file_dest, '/author/')
or strstr($file_dest, '/wp-content/plugins/')
or strstr($file_dest, '/wp-json/')){
unlink($file_dest);
}
}

どうすれば再構築時に一部のディレクトリ、ファイルを除外できますでしょうか?

Amazon S3のAWS署名バーション2の廃止について

Amazon S3のAWS署名バーション2が2019年6月24日に廃止され、AWS SDK for PHP v1とv2はアップグレードが必要になるという記事を見かけました。

参考記事: https://dev.classmethod.jp/cloud/aws/s3-sigv2-abolition/
公式: https://docs.aws.amazon.com/ja_jp/AmazonS3/latest/dev/UsingAWSSDK.html#UsingAWSSDK-sig2-deprecation

署名バージョン 2 から署名バージョン 4 への移行

AWS SDK for PHP v1 | 主要バージョン V3 にアップグレード。
AWS SDK for PHP v2 | 主要バージョン V3 にアップグレード。
AWS SDK for PHP v3 | SDK のアップグレードは不要です。

aws.pharの中身を拝見したのですが、こちらのプラグインはAWS SDK for PHP v2を利用していると思われます。
SDK v3へのアップグレードに対応されるご予定はありますでしょうか?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.