-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Command .platform/hooks/prebuild/update_composer.sh failed with error fork/exec .platform/hooks/prebuild/update_composer.sh: permission denied #8
Comments
Another question...
Within |
Hey! According to this: #6, sudo should be used to avoid any errors regarding the install. The errors related to
|
Windows Bash acts different because it emulates the UNIX CLI, but the filesystem is still turned upside down. Use Ubuntu on Windows 10 from the Store to access the files and chmod them: https://www.microsoft.com/store/productId/9N6SVWS3RX71 |
Resolved by using .ebextensions rather than .sh hooks
|
Yes, this is a workaround. 👀 If you check the diff between master and amazon-ami branch, you can see that most of the commands were moved to .platform/ since i tought it is a good idea to make use of this AL2 feature. 😅 |
i made a posting in aws forum. there are too many reasons for this problem. one of the reasons is deploying from a windows machine |
Consider running the commands using WSL if you got Windows 10 or your CI/CD pipeline instead before deploying it. |
Hello Alex, thank you for this awesome repo ,
I was trying your scripts but I got this error on prebuild hook:
This is the content (copy-pasted) of
.platform/hooks/prebuild/update_composer.sh
:I tried executing it manually via SSH (ec2-user) and it worked:
I know it's not crucial for the deploy, but do you have any idea?
P.S: I'm on Windows 10, I tried chmoddin' with git bash and both files are already executable...
The text was updated successfully, but these errors were encountered: