{"id":15667967,"url":"https://github.com/naps62/capistrano3-monit","last_synced_at":"2025-04-30T22:24:55.207Z","repository":{"id":62554951,"uuid":"14931180","full_name":"naps62/capistrano3-monit","owner":"naps62","description":"Monit integration for Capistrano 3","archived":false,"fork":false,"pushed_at":"2019-01-08T10:32:38.000Z","size":9,"stargazers_count":23,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T04:18:02.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/naps62.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}},"created_at":"2013-12-04T17:47:00.000Z","updated_at":"2022-03-28T13:27:35.000Z","dependencies_parsed_at":"2022-11-03T05:30:27.841Z","dependency_job_id":null,"html_url":"https://github.com/naps62/capistrano3-monit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-monit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-monit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-monit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naps62%2Fcapistrano3-monit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naps62","download_url":"https://codeload.github.com/naps62/capistrano3-monit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790595,"owners_count":21644245,"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":[],"created_at":"2024-10-03T14:06:01.596Z","updated_at":"2025-04-30T22:24:55.189Z","avatar_url":"https://github.com/naps62.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capistrano 3 Monit Wrapper\n\n## Usage\n\nAdd the gem to your Gemfile\n\n    gem 'capistrano3-monit', github: 'naps62/capistrano3-monit'\n\nRun `bundle` to update your `Gemfile.lock`\nAdd the following to your `Capfile`:\n\n    require 'capistrano/monit'\n\nThe following tasks will be available to you:\n\n    monit:status  # shows the output of running `monit status` on the server\n    monit:start   # sends a start signal to all monitored processes\n    monit:stop    # sends a stop signal to all monitored processes\n    monit:restart # sends a restart signal to all monitored processes\n\n### Automatic restart\n\nUntil version 0.3.0, `monit:restart` would automatically be hooked into your `deploy:restart` task. Starting in 0.4.0, that is no longer the case.\n\nIf you want to achieve the same result, you can something like the following to your `config/deploy.rb`:\n\n```ruby\nnamespace :deploy do\n  task :restart =\u003e 'monit:restart'\nend\n\nafter 'deploy:publishing', 'deploy:restart'\n```\n\n## How it works\n\nCurrently, the `start|stop|restart` tasks assume you only want to handle\nmonitored processes related to the app being deployed. For this, the name of\neach process should contain the name of the application. For example, if you\nhave the following configuration for your production stage:\n\n    # config/deploy/production.rb\n    set :application, 'production'\n\nAnd if `monit:status` returns the following output:\n\n    Process 'production-puma'\n      status             Does not exist\n      monitoring status  Monitored\n      data collected     Wed, 04 Dec 2013 23:24:51\n\n    Process 'production-redis'\n      status             Does not exist\n      monitoring status  Monitored\n      data collected     Wed, 04 Dec 2013 23:24:51\n\n    Process 'staging-puma'\n      status             Does not exist\n      monitoring status  Monitored\n      data collected     Wed, 04 Dec 2013 23:24:51\n\n    Process 'staging-redis'\n      status             Does not exist\n      monitoring status  Monitored\n      data collected     Wed, 04 Dec 2013 23:24:51\n\nThen launching the `monit:start` task will only handle the `production-puma`\nand `production-redis` processes.\n\n## Configuring sudo\n\nIf you don't want monit to be executed with sudo, add this to your `config/deploy.rb`:\n\n```ruby\nset :execute_monit_without_sudo, true\n```\n\n# TODO\n\n* Add tasks to manage the monit service itself\n* Allow a customizable list of processes to manage, instead of making\n  assumptions based on their names\n\n# Contributing\n\nThis is a very early work, extracted from a specific project i'm working on.\nIf you require a new feature, please open an issue, or preferably, a pull request with\na proposed implementation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaps62%2Fcapistrano3-monit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaps62%2Fcapistrano3-monit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaps62%2Fcapistrano3-monit/lists"}