Skip to content
New issue

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

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

Already on GitHub? # to your account

Call a script on exit #1780

Open
Astrak opened this issue Apr 24, 2024 · 0 comments
Open

Call a script on exit #1780

Astrak opened this issue Apr 24, 2024 · 0 comments

Comments

@Astrak
Copy link

Astrak commented Apr 24, 2024

I'm using side services through docker that I run before launching serverless offline, however for my colleagues I inline it with docker-compose up -d && serverless offline. Issue is, I would like to docker-compose down when serverless offline is stopped. It looks like the --exec option is not handled anymore. I've also tried using trap 'command' EXIT & serverless offline but command is then executed at the beginning as serverless offline already works around it. Any idea how to do it?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant