Search code examples
idephpstormcode-editor

"Copy files from source folder to another location" in PhpStorm


In NetBeans IDE, for any project, I have an option to check "Copy files from source folder to another location", which copies files from my working directory to another directory every time I make any change in my working copy. I use this feature, because I have the other directory synced with Google Drive, which updates the testing server immediately when I make any changes.

Now I am trying to switch to PhpStorm from NetBeans, but I cannot find any such option in PhpStorm. Can anyone help me, how can achieve the same in PhpStorm?


Solution

  • It can be done using Deployment functionality.

    1. Settings/Preferences | Build, Execution, Deployment | Deployment
    2. Create new entry of Local or Shared Folder type
    3. Configure it (all tabs)
    4. Mark it as Default for this project
    5. Enable automatic deployment in Deployment | Options (look for Upload changed files automatically setting) .. or just use Upload or Synchronize with... actions manually

    More in these official manuals (with video and pictures).