weixu365 / serverless-scriptable-plugin

Adding script support to Serverless 1.x which enables you to customize Serverless behavior without writing a plugin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serverless deploy only function does not trigger command

utajum opened this issue · comments

Well its pretty self explanatory. If i do a normal deploy serverless deploy, then it works ok, but if i deploy only the function like so serverless deploy function -f appsync, nothing happens

I tried with the lifecycle methods that are listed in the serverless docs
https://serverless.com/framework/docs/providers/aws/guide/plugins/

I use these two plugins:

plugins:
  - serverless-appsync-plugin
  - serverless-webpack

Tried with different order and it was the same, commands from this plugin were never triggered.

Sorry for the noise

It turns out i can use before:deploy:function:deploy:

I found the info here
https://gist.github.com/HyperBrain/50d38027a8f57778d5b0f135d80ea406