I'm trying to run a file with heroku run path/to/file.php
and I get a reponse:
bash: path/to/file.php: Permission denied
I've tried chmod 755 on the file and directory, but it seems that heroku changes it back to 600... After running chmod 755 it shows 755, but then when I exit bash and then come back the permissions are reset to 600.
What am I missing?
Also some people have suggested heroku run php path/to/file.php
but I get an error saying bash: php: command not found