9

I need to export my deployment settings from a project to another one. How can I do this? I tried to export all the settings [File -> Export Settings...] and import them into the new project but I have no configuration available in the Deployment server list.

rvandoni
  • 3,225
  • 4
  • 31
  • 45

3 Answers3

17

Copy both .idea/deployment.xml and .idea/webServers.xml from the first project to the second one. Watch out, because that will overwrite the second project's settings.

Lorenzo Marcon
  • 7,921
  • 5
  • 37
  • 61
  • How can i archive this with the newest version? As I read it now uses Keepass database. But I only need some servers not all so i can't copy the hole file to my new computer. – ntiedt Mar 27 '19 at 08:21
  • where is `.idea` located in any PyCharm project? – Charlie Parker Feb 07 '22 at 21:09
  • to find the `.idea` folder follow these instructions: https://stackoverflow.com/questions/33010238/show-idea-folder-in-phpstorm-project-tool-window it should be in the root of the folder that was used to create the project. – Charlie Parker Feb 07 '22 at 21:32
14

Easier way is to uncheck the "visible only for this project" setting. It will be visible for all of your projects.

screenshot

John Kakon
  • 2,511
  • 4
  • 22
  • 28
0

On Windows 10, I found that copying over %appdata%\JetBrains\PhpStorm2021.3\options worked - but this was for copying the deployment settings from machine A to machine B. The other settings worked fine using just the regular export settings available from PhpStorm.

Wotuu
  • 808
  • 1
  • 7
  • 18