Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Finalize Deploy Hook not working #254

Closed
tnorlund-dsc opened this issue Jan 3, 2024 · 2 comments
Closed

Finalize Deploy Hook not working #254

tnorlund-dsc opened this issue Jan 3, 2024 · 2 comments

Comments

@tnorlund-dsc
Copy link

Trying to get something to run after a serverless deploy. Can't get it to work using the after:deploy:finalize tag. Is there something else I need to add to the "serverless.yml" file?

serverless.yml

...
custom:
  wsgi:
    app: app.app

  scriptHooks:
    after:deploy:finalize:
      - ECHO "Deployed at `date`"
...
@nuc-ronniehyslop
Copy link

@tnorlund-dsc are you using any particular plugins? Is it just the ECHO that's not working and where are you expecting the ECHO to go? On screen when deploy finishes or in cloudwatch logs? etc.

@nuc-ronniehyslop
Copy link

nuc-ronniehyslop commented Jan 4, 2024

There is an article here: https://stackoverflow.com/questions/52525042/invoke-a-lambda-function-with-deployment-using-serverless-framework this uses the serverless-plugins-scripts plugin and has a slightly different syntax than what you posted above. It's not something I've done before though.

Repository owner locked and limited conversation to collaborators May 17, 2024
@logandk logandk converted this issue into discussion #259 May 17, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants