Can I run a script to create a remote host for PhpStorm? Or use the same remote host?
I have a system that automatically builds instances of my app under subdomains. The subdomain names could be anything, for example:
I would like to add a script to my system that creates and configures a remote host (or new mappings for a specific remote host, if that works like this too) and adjust settings as needed for PhpStorm. Also would need to be able to remove them, ideally. Is this possible? Maybe as a PhpStorm plugin if not otherwise possible?
If there is a better way of doing this, please advise. I'm new to PhpStorm so I don't yet understand the mappings and deployment features fully. Is it possible to use just one remote host like domain.com and have each project's files deployed to a subdomain folder that I specify? Like this:
Remote host's folder structure: /domain.com/subdomain.domain.com/app/source/file.php
So the file in a local project would be /app/source/file.php
And on the remote host for this project it should be synced to subdomain.domain.com/app/source/file.php
Please sign in to leave a comment.
Not sure about the script/plugin but here's some info that might help you:
1) you can create a Deployment server and on "Connection" tab uncheck "Visible for this project only" checkbox. This would make the server visible for other projects.
2) Is it possible to use just one remote host like domain.com and have each project's files deployed to a subdomain folder that I specify?
Yes, on a mapping tab you can set the deployment mapping path that would be individual for every project.