{"id":20080718,"url":"https://github.com/cloud8421/code_reloader","last_synced_at":"2026-05-08T22:33:53.703Z","repository":{"id":139443279,"uuid":"51581937","full_name":"cloud8421/code_reloader","owner":"cloud8421","description":"Experimental (and hacky) recompile support for Elixir via a tcp socket","archived":false,"fork":false,"pushed_at":"2016-03-09T10:37:25.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T13:26:29.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloud8421.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-02-12T10:52:23.000Z","updated_at":"2016-02-12T10:52:34.000Z","dependencies_parsed_at":"2023-04-03T22:16:31.730Z","dependency_job_id":null,"html_url":"https://github.com/cloud8421/code_reloader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cloud8421/code_reloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud8421%2Fcode_reloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud8421%2Fcode_reloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud8421%2Fcode_reloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud8421%2Fcode_reloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloud8421","download_url":"https://codeload.github.com/cloud8421/code_reloader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud8421%2Fcode_reloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32800251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T15:29:45.021Z","updated_at":"2026-05-08T22:33:53.687Z","avatar_url":"https://github.com/cloud8421.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeReloader\n\nExperimental application that allows to recompile and restart an Elixir application via a tcp command.\n\n## Installation\n\nThis package can be installed via:\n\n  1. Add code_reloader to your list of dependencies in `mix.exs`:\n\n        def deps do\n          [{:code_reloader, github: \"cloud8421/code_reloader\", only: :dev}]\n        end\n\n  2. Ensure code_reloader is started before your application:\n\n        def application do\n          [applications: [:plug, :cowboy, etc...] ++ code_reloader_app(Mix.env)]\n        end\n\n        defp code_reloader_app(:dev) do\n          [:code_reloader]\n        end\n        defp code_reloader_app(_), do: []\n\n     **IMPORTANT** Please make sure that the application is started only in\n     `dev` as shown in the example above.\n\n  3. Configure the needed port in `config.exs`:\n\n        config :code_reloader,\n          port: 9999\n\n## Usage\n\nOnce up, you can send tcp commands to the istance, for example with [nmap](https://nmap.org/).\n\n    $ echo \"recompile\" | ncat localhost 9999\n\n## Custom recompile\n\nIn some instances, for example when using cowboy and ranch, the default recompile task may fail.\n\nIn that case you can override the default behaviour by:\n\n  1. Defining a custom callbacks module\n\n      ```elixir\n      defmodule MyCallbacks do\n        use CodeReloader.Callbacks\n\n        def recompile do\n          Application.stop(:cowboy)\n          Application.stop(:ranch)\n          super\n        end\n      end\n      ```\n\n  2. Add it to the configuration:\n\n        config :code_reloader,\n          port: 9999,\n          callbacks_module: MyCallbacks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud8421%2Fcode_reloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloud8421%2Fcode_reloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud8421%2Fcode_reloader/lists"}