PHPStorm: Automatically set deployment mappings when creating new project?
I've recently installed XAMPP and PHPStorm 2016.3 on a new laptop.
I have been trying to change my PHPStorm settings so that the XAMPP server is used for deployment instead of the default server that comes with PHPStorm.
This has been mostly successful, though I still need to manually change the different mappings every time I create a new project.
I have set my "XAMPP Server" that I've added to be used as default, but every time I create a new project and go to File -> settings -> Deployment -> Mappings, I get the following:
local path:
C:\xampp\htdocs\www\<projectName> (correct)
Deployment path on server 'XAMPP Server' (relative to folder 'C:\xampp\htdocs\www'):
empty (I want this to change to <projectName> by default, so I don't need to manually change this every time)
Web path on server 'XAMPP Server':
/ (I want this to change to /<projectName> by default, so I don't neeed to manually change this every time)
I'm sure I must be missing something obvious, but after a bit of searching around I could not find out how to do this. I am still very new to most of the PHPStorm settings, any help is much appreciated! :-)
Please sign in to leave a comment.
Hello,
While you can make a deployment server global, mappings are strictly per-project at the moment. It means that we cannot manage them until the project itself is created.
If you would like to have mappings global too, it would be great if you could submit the feature request to our tracking system here: <http://youtrack.jetbrains.com/issues/WI#newissue=yes>. You will be able to receive the answer directly from our developers while other users will be able to write their opinion of your proposal.