'PhpStorm deployment successful but does not update remote file
I am using a shared hosting platform to host my website and I am using PhpStorm as my IDE.
I have configured PhpStorm for deployment which connects successfully to the server.
When I deploy my file to the server the file transfer terminal shows successful... but if I check the file on the server it is not updated.
Solution 1:[1]
The deployment seems to work fine: if it says uploaded then it did.
You can use "Compare with Deployed..." on such a file (or "Synchronize with Deployed..." on a folder) to see if it will show any differences: if it shows the difference then we have an issue; otherwise it's a misconfiguration somewhere.
I have seen quite a few PhpStorm tickets/forum treads with similar descriptions... and extremely likely this will be user mistake/misconfiguration.
Please double check the file paths (path mappings). You may be uploading to the wrong folder.
Looking at your paths (from your screenshot):
- source:
C:\xampp\htdocs\agents\application\controllers\Payments.php - target:
/public_html/application/controllers/Payments.php
The
agentsmust be the project/website name here and you upload from/agents/applicationto/public_html/application.It's possible (for such controller files at very least) that
/public_htmlis not needed here and you may want to upload it into the/applicationfolder instead.- source:
Make sure that you are using the correct Deployment entry (in case you have more than one). You may simply be uploading to another/wrong server.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | LazyOne |

