Skip to content

Commit 841dacf

Browse files
committed
remove unused serve function from wsgi plugin
1 parent d8fd220 commit 841dacf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

index.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,6 @@ class ServerlessPythonRequirements {
7676
fse.removeAsync(path.join(this.serverless.config.servicePath, artifact))));;
7777
};
7878

79-
serve() {
80-
const port = this.options.port || 5000;
81-
82-
return new BbPromise((resolve, reject) => {
83-
child_process.spawnSync('python', [
84-
path.resolve(__dirname, 'serve.py'),
85-
this.serverless.config.servicePath,
86-
this.wsgiApp,
87-
port
88-
], { stdio: 'inherit' });
89-
resolve();
90-
});
91-
};
92-
9379
constructor(serverless, options) {
9480
this.serverless = serverless;
9581
this.options = options;

0 commit comments

Comments
 (0)