MCPcopy Index your code
hub / github.com/serverless/serverless / dev

Method dev

packages/engine/src/index.js:301–319  ·  view source on GitHub ↗

* 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,
  } = {})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected