Skip to content
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

Cannot run hook scripts in monorepo #165

Open
3 tasks done
596050 opened this issue Nov 23, 2022 · 0 comments
Open
3 tasks done

Cannot run hook scripts in monorepo #165

596050 opened this issue Nov 23, 2022 · 0 comments

Comments

@596050
Copy link

596050 commented Nov 23, 2022

Are you certain it's a bug?

  • Yes, it looks like a bug

Are you using the latest version?

  • Yes, I'm using the latest version

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Issue description

Hello,

I''m trying to run hook scripts in individual apps for a monorepo.

When I try using the scripts plugins hooks:

serverless-plugin-scripts

and

serverless-scriptable-plugin

with something like

  custom: {
   ...
     scriptable: {
        // hooks used to invoke a lambda at the end of the deploy to populate the app secrets
        hooks: {
          "after:package:finalize": "sls invoke -f populateSSM",
        },
     }
  }

Screenshot 2022-11-23 at 13 10 26

Deployment is stuck, when I remove the hook script, it deploys as expected.

Do you know why that would be and where a fix needs to be made?

Service configuration (serverless-compose.yml) content

services:
  infrastructure-identity-verification:
    path: ./apps/infrastructure-identity-verification

  auth-service:
    path: ./apps/auth-service
    dependsOn:
      - infrastructure-identity-verification

  workers:
    path: ./apps/workers
    dependsOn:
      - infrastructure-identity-verification

  public-identity-verification:
    path: ./apps/public-identity-verification
    dependsOn:
      - infrastructure-identity-verification
      - workers

Command name and used flags

serverless deploy --stage=staging

Command output

N/A - output just hangs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant