Commit f8be62b
committed
refactor: Ngrok::start method to test ngrok for errors before actually running the command for real.
- Refactor `start` method and test ngrok for errors with the command, and only run the command for real in a new CMD if the test was successful. Otherwise, we need to output the errors to the terminal.
This is required now, since ngrok shipped with valet may be "too old" for some accounts. The ngrok executable will be updated to the latest version in the upcoming 3.2.0 version. But the user can always update valet's ngrok themselves by running `valet ngrok update`.
- Added `testNgrok` method to run the command (without a new CMD) through Symfony's Process which returns the output.1 parent cea78fe commit f8be62b
1 file changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
75 | 96 | | |
76 | 97 | | |
77 | 98 | | |
| |||
171 | 192 | | |
172 | 193 | | |
173 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
174 | 206 | | |
0 commit comments