{"id":13483140,"url":"https://github.com/faustinoaq/sentry-run","last_synced_at":"2025-05-12T23:11:53.644Z","repository":{"id":76219160,"uuid":"86459198","full_name":"faustinoaq/sentry-run","owner":"faustinoaq","description":"Use Sentry shard for reload your app","archived":false,"fork":false,"pushed_at":"2018-06-21T16:09:01.000Z","size":95,"stargazers_count":11,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T04:32:44.401Z","etag":null,"topics":["crystal","monitor"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/faustinoaq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-28T12:47:28.000Z","updated_at":"2021-02-16T06:46:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc89167b-9fd3-4377-ac0d-db00c02c255f","html_url":"https://github.com/faustinoaq/sentry-run","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustinoaq%2Fsentry-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustinoaq%2Fsentry-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustinoaq%2Fsentry-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustinoaq%2Fsentry-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faustinoaq","download_url":"https://codeload.github.com/faustinoaq/sentry-run/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253837456,"owners_count":21971984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crystal","monitor"],"created_at":"2024-07-31T17:01:08.547Z","updated_at":"2025-05-12T23:11:53.621Z","avatar_url":"https://github.com/faustinoaq.png","language":"Crystal","funding_links":[],"categories":["Development Tools"],"sub_categories":[],"readme":"\u003cp align=\"left\"\u003e\u003cimg src=\"logo/logotype_horizontal.png\" alt=\"sentry-run\" height=\"120px\"\u003e\u003c/p\u003e\n\n[![Build Status](https://travis-ci.org/faustinoaq/sentry-run.svg?branch=master)](https://travis-ci.org/faustinoaq/sentry-run)\n\nA shard using [Sentry](https://github.com/samueleaton/sentry) for reload code changes with `Sentry.run`.\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndevelopment_dependencies:\n  sentry-run:\n    github: faustinoaq/sentry-run\n```\n\nThen run `shards update`.\n\n## Usage\n\n1. Create a new process with `process = Sentry.config(...)`\n2. Execute `Sentry.run(process) do ... end`\n\n```crystal\nrequire \"kemal\"\nrequire \"sentry-run\"\n\nget \"/\" do\n  \"Hello world\"\nend\n\nprocess = Sentry.config(\n  process_name: \"App\",\n  build_command: \"crystal\",\n  run_command: \"./bin/app\",\n  build_args: [\"build\", \"src/app.cr\", \"-o\", \"bin/app\"],\n  run_args: [\"-p\", \"9000\"])\n\nSentry.run(process) do\n  Kemal.run\nend\n```\n\nYou can use `Sentry.run` for recompile and reload your code without external `sentry.cr`.\n\nDefault values:\n\n```\nprocess_name : String\nbuild_command : String\nrun_command : String\nbuild_args = [] of String\nrun_args = [] of String\nfiles = [\"src/**/*.cr\", \"src/**/*.ecr\"]\nshould_build = true\n```\n\n## How does it work?\n\nBasically this shard checks a `sentry.lock` file.\n\nWhen you run your code `Sentry.run` create a `sentry.lock` and then yield a block. After a code change Sentry recompiles your file and rerun a new app instance with `run_command` in `Sentry.config`.\n\n## Contributing\n\n1. Fork it ( https://github.com/faustinoaq/sentry-run/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Disclaimer\n\n`Sentry.run` is intended for use in a development environment.\n\n## Contributors\n\n- [faustinoaq](https://github.com/faustinoaq) Faustino Aguilar - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustinoaq%2Fsentry-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaustinoaq%2Fsentry-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustinoaq%2Fsentry-run/lists"}