I use phpStorm on a mac using the deployment function with SFTP. Today I noticed, that file permissions get lost when I do that. Some of my local files have the execution bit set, but it is not set on the remote server.
In the deployment options I have disabled "Override default permissions" and did not have it enabled ever before.
What to do? Googled the world but could not find something that hooks into the deployment process of phpStorm. That is automatically triggering the deployment on save for instance. Found a solution with rsync and phing (http://www.ibresources.com/technical/programming/rsync-with-phpstorm), but for this solution, I have to press an extra key, what I do not want ( lazy bitch, I know ;-) ).
If there is no solution I am about to upload manually with rsync, which keeps the permissions and rely on the rest of the deployment features of phpStorm. The "Upload"-function is useless then.
Does anybody face the same problem? What to do about it?
Cheers, Thomas
I realize this is an old thread. However;
To preserve RWX permissions of files on upload this can be defined in PHPStorm Settings | Build, Execution, Deployment | Deployment | Options
.
You will need to activate the check box for "Override default permissions on files" and open the options dialog to complete.
Please reference the manual at.
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