Skip to content

Feature Request : support "invoke local" and deploy a single function #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
iharush opened this issue Nov 8, 2017 · 6 comments
Open

Comments

@iharush
Copy link

iharush commented Nov 8, 2017

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

@iharush iharush changed the title Feature Request : support "invoke local" Feature Request : support "invoke local" and deploy a single function Nov 8, 2017
@ubaniabalogun ubaniabalogun self-assigned this Nov 9, 2017
@ubaniabalogun ubaniabalogun removed their assignment Nov 9, 2017
@k-ogawa-1988
Copy link

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

@MrTeale
Copy link

MrTeale commented Jun 27, 2018

+1 on this feature

@mehdisadeghi
Copy link

mehdisadeghi commented Aug 16, 2018

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.

@jamesrgrace
Copy link

+1 on the feature request to be able to deploy a single function.

@jamesrgrace
Copy link

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?

@mehdisadeghi
Copy link

mehdisadeghi commented Aug 13, 2019

@jamesrgrace it is only for invoking functions locally. It also upgrades pip inside the local container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants