I am trying to deploy some Django code to an AWS Elastic Beanstalk Environment. I am getting a deployment error:
The configuration file __MACOSX/OriginalNewConfig-deploy/.ebextensions/._python.config in application version OriginalNewConfig2-deploy contains invalid YAML or JSON. YAML exception: unacceptable character '' (0x0) special characters are not allowed in "<reader>", position 0, JSON exception: Unexpected character () at position 0.. Update the configuration file.
The python.config file (in the .ebextensions folder) looks like this:
---
container_commands:
01_wsgipass:
command: "echo \"WSGIPassAuthorization On\" >> ../wsgi.conf"
packages:
yum:
libjpeg-turbo-devel: []
The deployment code I am using has apparently been successfully deployed before (by the original developer) so I do not understand why an error is being reported.
I am deploying by using the 'Upload and Deploy' button in the AWS EB dashboard.
Seems like MAC creates this hidden folder automatically. I was also having this issue.
I've used the following command on terminal:
zip -d filename.zip __MACOSX/\*
found here: Mac zip compress without __MACOSX folder?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With