wmuizelaar
Forum Replies Created
-
I have the same notices – they appeared after upgrading PHP to PHP 7.4.
Great! Much appreciated!
To install + run my wordpress environment, I use the following tools:
– I have a git repo with all the wordpress php-files on it
– I manage wordpress in that repo with the wp-cli tool, i.e.wp plugin install post-smtp
– This downloads the .zip-file, and extracts it into the plugins directory
– I add all the newly added code to my git repogit add .
– I commit and push this to github
– A container build is started to build a docker image with the wordpress-install in it
– This is deployed to Google CloudNormally, that all runs well. But if there are any .gitignore-files within the plugins folders, the files mentioned -in- those .gitignore-files will not be added to my git-checkout, and therefore not included in the docker image.
If other people also use git in their wordpress-deployment workflow, they will encounter the same issues.
Would it be possible to add a
find . -type f -name .gitignore
line to your release procedure to remove those .gitignore-files in future releases?Maybe @yehudah can elaborate on that?
Those files might be hidden? This were the locations I found them:
./post-smtp/Postman/Postman-Connectivity-Test/registered-domain-libs-master/.gitignore ./post-smtp/Postman/Postman-Mail/sendgrid/.gitignore ./post-smtp/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.gitignore ./post-smtp/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.gitignore ./post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/auth/.gitignore ./post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient-services/.gitignore ./post-smtp/Postman/Postman-Mail/google-api-client/vendor/psr/log/.gitignore ./post-smtp/Postman/Postman-Mail/mailgun/vendor/clue/stream-filter/.gitignore ./post-smtp/Postman/Postman-Mail/mailgun/vendor/symfony/options-resolver/.gitignore ./post-smtp/Postman/Postman-Mail/mailgun/vendor/webmozart/assert/.gitignore
Especially the first one is harmful, since that contains:
$ cat ./post-smtp/Postman/Postman-Mail/sendgrid/.gitignore test/coverage/* examples/* dist/ composer.lock vendor .env* sendgrid-php.php
The last entry is a reference to the sendgrid-php.php file itself, which then became missing in my git checkin of my wordpress installation.
Hope this helps!
Cheers,
Wietse- This reply was modified 5 years, 2 months ago by wmuizelaar.
That was a good pointer, thanks!
I figured out what the issue was – there are a bunch of .gitignore-files throughout the plugin-code; and that prevented my git-repo from adding the whole codebase to my repo.
I just deleted those .gitignore-files, and now life is happy.
Case closed!