I generate correct deployment config by script, but deployment throws ssh error Follow
I generate deployment.xml, sshConfigs.xml and webServers.xml by script from template. Generated configs are identical to ones, created by webstorm. But, if I try to "Browse remote host" with generated configs, it throws error
But, if i push "Test connection" button here
Which shows "Successfully connected"
And after in "Deployment" window also push "Test Connection"
Which also shows
Then "Browse remote host" starts working fine.
Could you please tell me, what to do, to make it working without pushing "Test connection" buttons?
Please sign in to leave a comment.
Checked that and it worked fine for me. Did you paste the files into .idea folder while the project was closed?
Could you please check if you have correct Deployment Mappings on Mappings tab after your project creation? I've recently faced a similar problem and perhaps they have something common: https://youtrack.jetbrains.com/issue/WI-68662
mapping is ok.
> Checked that and it worked fine for me.
did you tried to generate config, which is different from the current?
If I generate the same config as current, everything works fine, but I need to generate different)
> Did you paste the files into .idea folder while the project was closed?
I generate configs and paste them into .idea folder while WS is opened. I don't close it. I just push 'Reload from disk' on .idea folder, to make WS see configs and start pushing "test connection" button procedure)
> did you tried to generate config, which is different from the current?
I've created a deployment configuration that wasn't existing before in a project. Do you mean that?
my templates are:
and templater.bash
ssh_conf_id and web_server_id were taken from configs generated by WS
May be you see something wrong here?)
Why it starts working after "test connection" buttons?)
Looks fine to me. Unfortunately I can't see why it works only after pressing "test connection". Perhaps there are some internal mechanisms, similar to caching, that aren't populated till you press that button.