sentry
sentry copied to clipboard
Integration into another program
Hello,
For now sentry can just be run alone. It would be great to have the possibility to embed it into another program.
Because for now I have to reproduce the options and run sentry in another process : kemalyst-generator/commands/watch.cr
I was waiting for shards to add the feature where it can run build commands after installing a dependency. See https://github.com/crystal-lang/shards/issues/124 and https://github.com/crystal-lang/shards/pull/126.
I am doing some dynamic things when people run the install script:
curl -fsSLo- https://raw.githubusercontent.com/samueleaton/sentry/master/install.rb | ruby
You can look at the install.rb script to see whats going on.
But I think there may be something I can do—some refactoring perhaps. I think I can make the [app_name] that appears in sentry.cr be dynamic on run time or be able to be overridden by an argument.
@TechMagister let me know if your issue is resolved or if there anything else I need to add.
With the pr #8 , the [process_name] is taken dynamically from shard.yml It is perfect for me, let's see if it doesn't break anything for current users ( it should not ).