Deployment on Remote Host (Visible only for this project)

已回答

I have a big problem.

I have several Python projects and don't want to accidentally sync the scripts to the wrong remote host during deployment (Run, Debug, Deploy).

For this reason, I would like to use the option 'Visible only for this project'.

If the option is not set, I can easily sync all changed scripts by clicking on run and run them in the IDE console on the remote host.

As soon as I enable the option, I can still sync the modified scripts by clicking run, but executing them in the console no longer works. No errors appear, but absolutely nothing happens either.

Can anyone give me an explanation for this problem or, better yet, a solution.

Thank you

0
正式评论

Hi Stefan

I cannot replicate this issue on my end using a similar description as yours 

My configuration:

  • PyCharm 2024.3.5
  • set up remote Python interpreter (using  ubuntu 24.04 OpenSSH and python 3.12.3)
  • set up deployment configuring
    • SFTP
    • from options → upload  changed files automatically to default server → always
    • check use as default

 

Would you please cross check your settings with mine and send me similar screenshots if the issue still persists even after any modifications based on the above information?

Please also do send me a screenshot when you click run with the output.

 

Kind regards,

 

 

Hello, Stefan Dietrich. Unfortunately, from the current description you provided, it is not entirely clear to me what exactly happens.  Could you please specify which scripts you mean, is it just files in your project? Where exactly the  Visible only for this project option is located?

0

Hi, 

I mean all the scripts that are in my project.

By clicking on Run, all modified scripts are transferred to the remote server via an SSH connection and executed via the remote SDK and output in the local console of the IDE.

If I now want to set the option 'Visible only for this project' for the standard ssh server (and the reason why I want to do this should be understandable), then the changed scripts will still be transferred, but no longer executed.

Unfortunately, there is no error message.

0

Hello Ervis. Thanks for your suggestion.

Starting with the fact that I'm working with IntelliJ and not PyCharm, I've given up on it by now. There doesn't seem to be a viable solution. I also now believe that IntelliJ might be a little bit buggy; I sometimes had to create three or four remote libraries before it worked.

I'm currently using six different remote SDKs, but the checkbox mentioned in the original post isn't checked anywhere because otherwise I can't deploy.

If no one else can reproduce this problem, it might be due to my configuration or possibly network policies in the corporate network. 

Whatever. I'm giving up.

0

HI Stefan
 

Understand and sorry to hear your experience was not great with this.

If you ever decide to give this feature another try please feel free to reach out anytime.

Kind regards,

 

0

请先登录再写评论。