Working (and testing) remote code from local Follow
Hi,
I'm developing scripts that are stored and running on a remote server that I have access to. I installed Pycharm on my local machine and I would like to do everything (code and test) on the remote server from local Pycharm. At some point it kind of worked but I changed stuff in the interpreter and deployment and now I have the error message "Can't get remote credentials for deployment server".
Anyway, reading the documentation, it looks like I'm not doing something conventional. From what I understand, I should have synchronised local and remote copies of the project folder but I don't understand why. I don't need the local copy, I just want to use the remote server environment and take advantage of Pycharm that I can't have installed on the server. Is it bad practice?
Cheers,
Mathieu
Please sign in to leave a comment.
Hello,
There two approaches how to handle the remote server code deployment :
1. Remote interpreter:
https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html
https://www.jetbrains.com/help/pycharm/deploying-applications.html
which requires a local copy of the project, as it is assumed that development is done on you local computer and then code is deployed to remote.
2. Remote development https://www.jetbrains.com/help/pycharm/remote-development-starting-page.html
local copy of the project is not required in this case, see how it is implemented https://www.jetbrains.com/help/pycharm/remote-development-overview.html
Let me know if you have any additional questions.
2.
Thanks!