I am trying to execute a script in my repository but when I try to execute it using shell_exec it simply outputs:
sh: scriptName: Permission denied
Obviously the error indicates that I do not have permission to execute the script. Why is this and is there any way around this?
All app exists in a non-executable file system for security reasons. What exactly are you trying to do?
No worries. I was trying to execute clang but it guessed it would executing scripts would disabled.
Thanks for clarifying.
I've had a look around at other PaaS like PagodaBox and none of them allow execution of scripts and some don't even allow writable storage.
PagodaBox was the one I really liked the most and it's a shame it doesn't allow this. Is there any possible way to execute scripts say in an isolated area similar to the writable storage or is it completely out of the question?
This I’m not sure of. I can talk to our ops team on Monday. I do know that pre/post deploy scripts are features that are coming soon, but I don’t know how much that helps you.
Have you found out anything more about this Scott?
I’ll jump in and answer this (I’m one of the ops people.) We’ve always had a tight focus on security, which is why you can’t execute the script in the way you are attempting. We’re working post/pre deploy hooks and crons, which should let you execute things in a secure and consistent way. This is on our short term list, but we don’t have an ETA yet.
That sounds good. Cron jobs should hopefully allow me to do what I need.
Thanks for informing me of this!