serverless-package-python-functions
serverless-package-python-functions copied to clipboard
Feature Request : support "invoke local" and deploy a single function
Add support for "invoke local" Serverless command, invoke the function in the package folder structure with common_files and dependencies on root dir.
Run on local machine will probably need to use pip without docker.
In addition, it would be great to be able to deploy only one function.
serverless deploy -f functionName
Thanks, Itay
How about the progress of this feature?
For my macbook pro and developing service, deploying using serverless deploy
(includes about 40 functions per 1 service) takes about 30 minutes.
But sometimes I want to fix a small bug and test on cloud.
In this case, the requirements are packaging ONLY one function and uploading ONLY one function (this is already implemented, using serverless deploy function -f funtionName
).
I want serverless deploy -f functionName
to create only ONE functionName
's package and upload (replace).
Thanks, Ken
+1 on this feature
I wrote a simple patch for this (and an extra pip upgrade inside docker container) but since there are so many dangling PRs on this repo I put it on Github Gists instead: https://gist.github.com/mehdisadeghi/7b17a8eb5d5db2ae8de722d469d4a174. Give it a try, instructions on the Gist page.
Edit: it contains only the invoke local
part and just enough to run a single function.
+1 on the feature request to be able to deploy a single function.
Edit: it contains only the
invoke local
part and just enough to run a single function.
@mehdisadeghi : can you clarify - does this patch implement the single function deploy, or only the invoke local part?
@jamesrgrace it is only for invoking functions locally. It also upgrades pip inside the local container.