-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add start and stop callbacks #1913
Conversation
|
Okay this is ready for a review! @zzak (sorry I'm not sure who else to @') |
The code looks good to me. This is only used if you use Sinatra to start you web server, is that correct? Can you add some documentation to the README? Maybe even add an example of this to the Thanks |
Hey @dentarg, sorry I missed your comment!
Correct!
I will get on that! |
@dentarg I just updated the README and added Also, if you feel like the lifecycle events would make sense for servers NOT started with Sinatra, I'm down to create another PR for this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this reads easier
@dentarg, I've implemented the changes. Have a look and let me know! |
Great, do you mind rebasing to get CI green? |
Co-authored-by: Patrik Ragnarsson <patrik@starkast.net>
Co-authored-by: Patrik Ragnarsson <patrik@starkast.net>
d930f92
to
a9e8210
Compare
This PR adds lifecycle events to Sinatra. Related issue: #1184