* Runs Serverless Containers Dev Mode * @param {Object} options - The options object * @param {Function} options.onLogStdOut - The function to call when log output is received * @param {Function} options.onLogStdErr - The function to call when error log output is received * @returns {Pro
({
proxyPort = 3000,
controlPort = 3001,
onStart = null,
onLogStdOut = null,
onLogStdErr = null,
} = {})
| 299 | * @returns {Promise<void>} |
| 300 | */ |
| 301 | async dev({ |
| 302 | proxyPort = 3000, |
| 303 | controlPort = 3001, |
| 304 | onStart = null, |
| 305 | onLogStdOut = null, |
| 306 | onLogStdErr = null, |
| 307 | } = {}) { |
| 308 | // Validate |
| 309 | await this.#state.load() |
| 310 | |
| 311 | // Start Dev Mode |
| 312 | await this.#deploymentTypeInstance.dev({ |
| 313 | proxyPort, |
| 314 | controlPort, |
| 315 | onStart, |
| 316 | onLogStdOut, |
| 317 | onLogStdErr, |
| 318 | }) |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Runs Serverless Containers Remove |