使用 PyCharm 社区版本进行远程开发的最佳方式是什么 [英] what is the best way of doing a remote development using PyCharm community version

查看:333
本文介绍了使用 PyCharm 社区版本进行远程开发的最佳方式是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PyCharm Professional 有一个很好的远程开发功能——在本地机器上开发代码并在远程服务器上运行它们.如果没有 PyCharm Professional,模仿此功能的好方法是什么?我真的很喜欢 PyCharm,所以我不会放弃另一个 IDE.我曾经把代码打包成一个egg文件,然后sftp到一个删除服务器,但这很麻烦,因为我必须制作安装文件等.

PyCharm Professional has a nice feature of remote development -- developing codes on your local machine and running them on a remote server. Without PyCharm Professional, what would be a good way of mimicking this feature? I really like PyCharm so I won't give up for another IDE. I used to package the codes into an egg file and sftp it to a remove server but this is cumbersome, since I have to make the setup files, etc.

预先感谢您的建议.

推荐答案

使用 winscp 保持远程目录同步

use winscp to keep your remote directory in sync

安装 ssh

添加远程运行"的外部工具(我假设这是可用的)

add external tool of "run remote" (I assume this is available)

ssh user@remote.com -t "cd/path/to/proj && python myproj.py"

如果您设置了 ssh 密钥,它应该可以正常工作...如果没有,您可能会被提示输入密码

if you have ssh keys setup it should just work ... if not you will probably be prompted for a password

这篇关于使用 PyCharm 社区版本进行远程开发的最佳方式是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆