Commit 49c92f1
fix(code-server): use cmd.exe to launch code-server via PM2 on Windows
PowerShell's execution policy and process tracking make .ps1 + --interpreter
powershell.exe unreliable in PM2: the process exits immediately with no logs
(14 unstable restarts). Switch to .cmd wrapper launched via explicit
cmd.exe /d /s /c, which:
- Runs node synchronously (cmd.exe waits for node to exit)
- PM2 tracks cmd.exe and sees it as online while node runs
- Avoids any PowerShell execution policy issues
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent dfc4012 commit 49c92f1
2 files changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
184 | 187 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments