{"id":24807309,"url":"https://github.com/sarumaj/restartable-server","last_synced_at":"2025-10-30T20:23:59.234Z","repository":{"id":199197430,"uuid":"702336527","full_name":"sarumaj/restartable-server","owner":"sarumaj","description":"Implementation of a HTTP server resilient to SIGTERM OS signal and restartable on demand.","archived":false,"fork":false,"pushed_at":"2024-07-27T16:59:39.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T09:18:13.580Z","etag":null,"topics":["failsafe","go","golang","http-server"],"latest_commit_sha":null,"homepage":"https://sarumaj.github.io/restartable-server/","language":"Go","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/sarumaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["sarumaj"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["paypal.me/danviddo"]}},"created_at":"2023-10-09T06:02:02.000Z","updated_at":"2024-10-27T18:58:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"af7616e2-87f2-44da-9a78-69f877741ef7","html_url":"https://github.com/sarumaj/restartable-server","commit_stats":null,"previous_names":["sarumaj/restartable-server"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Frestartable-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Frestartable-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Frestartable-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarumaj%2Frestartable-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarumaj","download_url":"https://codeload.github.com/sarumaj/restartable-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245440580,"owners_count":20615633,"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":["failsafe","go","golang","http-server"],"created_at":"2025-01-30T09:18:15.142Z","updated_at":"2025-10-30T20:23:54.175Z","avatar_url":"https://github.com/sarumaj.png","language":"Go","funding_links":["https://github.com/sponsors/sarumaj","paypal.me/danviddo"],"categories":[],"sub_categories":[],"readme":"[![deploy](https://github.com/sarumaj/restartable-server/actions/workflows/deploy.yml/badge.svg)](https://github.com/sarumaj/restartable-server/actions/workflows/deploy.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sarumaj/restartable-server)](https://goreportcard.com/report/github.com/sarumaj/restartable-server)\n[![Maintainability](https://img.shields.io/codeclimate/maintainability-percentage/sarumaj/restartable-server.svg)](https://codeclimate.com/github/sarumaj/restartable-server/maintainability)\n[![Go Reference](https://pkg.go.dev/badge/github.com/sarumaj/restartable-server.svg)](https://pkg.go.dev/github.com/sarumaj/restartable-server)\n[![Go version](https://img.shields.io/github/go-mod/go-version/sarumaj/restartable-server?logo=go\u0026label=\u0026labelColor=gray)](https://go.dev)\n\n---\n\n# restartable-server\n\nImplementation of a HTTP server resilient to SIGTERM OS signal and restartable on demand.\n\nEspecially interesting when deploying HTTP servers with the GO runtime in containers.\n\nContainer runtime engine usually send a SIGTERM signal to kill the server process,\nwhich can be catch by the restartable server to restart itself.\n\nProvided as Proof of Concepts. Currently available at [restartable-server.heroku.com](https://restartable-server-a78d4e6a2c84.herokuapp.com/).\n\nhttps://github.com/sarumaj/restartable-server/assets/71898979/b511aa0e-707c-4260-a8b0-b3179a165e7e\n\n## Local deployment\n\n```\ngo build -o server cmd/server/main.go\n./server\n```\n\n## Deployment on Heroku\n\n```\nheroku login\ndocker ps\nheroku container:login\nheroku container:push web -a \u003capp_name\u003e\nheroku container:release web -a \u003capp_name\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarumaj%2Frestartable-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarumaj%2Frestartable-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarumaj%2Frestartable-server/lists"}