sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Integration into another program

Open TechMagister opened this issue 8 years ago • 3 comments
trafficstars

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

TechMagister avatar Jan 02 '17 10:01 TechMagister

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.

samueleaton avatar Jan 02 '17 20:01 samueleaton

@TechMagister let me know if your issue is resolved or if there anything else I need to add.

samueleaton avatar Jan 02 '17 23:01 samueleaton

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 ).

TechMagister avatar Jan 03 '17 09:01 TechMagister