Remote Run
当你在 Kubernetes 集群中启动一个新的容器时,Kubernetes 将不会在你的容器中启动任何进程。 Nocalhost 将根据 run configuration 在你的集群中执行源代码,就像使用 IDE 的 run 特性一样
支持的 IDE#
| 语言 | IDE | 版本 | 需要的插件 |
|---|---|---|---|
| Java | IntelliJ IDEA | Ultimate | N/A |
| Go | IntelliJ IDEA | Ultimate | Go plugin |
| GoLand | Professional | N/A | |
| Python | IntelliJ IDEA | Ultimate | Python plugin |
| PyCharm | Professional | N/A | |
| PHP | IntelliJ IDEA | Ultimate | PHP plugin |
| PHPStorm | Professional | N/A | |
| Node.js | IntelliJ IDEA | Ultimate | Node.js plugin |
| WebStrom | Professional | N/A |
Remote Run 的过程#
- 选择你想执行的工作负载
- 右键点击工作负载并选择
Dev Config, 设置你的运行配置 - 接着再次右键点击工作负载并选择 Remote Run
- Nocalhost 将会自动进入
DevMode并执行 remote run
在 IDE 中配置 Remote Run#
在启动 remote run 前,如果你现有工作负载没有 Nocalhost IDE 运行配置。 Nocalhost 将根据你的 Nocalhost configuration 创建一个新的 IDE 运行配置。 不同的 IDE 有不同的配置名称和模板
多重配置
如果你的工作负载有多个 Nocalhost IDE 运行配置,当你执行 remote run 时,Nocalhost 将会自动执行第一个配置。 您可以在 IDE 的 Run/Debug Configurations 窗口中更改配置文件的顺序。

配置#
不同开发者的开发环境有差异。 你应当根据实际情况来决定你的 remote run 配置。
示例配置#
- Java
- Python
- Go
- PHP
- Node.js
Nocalhost Configs
Nocalhost Configs
run.sh
Nocalhost Configs
run.sh
Nocalhost Configs
run.sh
Nocalhost Configs
run.sh