{"id":36492300,"url":"https://github.com/dunstorm/pm2-go","last_synced_at":"2026-01-12T01:57:07.340Z","repository":{"id":57705390,"uuid":"499149388","full_name":"dunstorm/pm2-go","owner":"dunstorm","description":"A pm2 clone built with go","archived":false,"fork":false,"pushed_at":"2025-11-25T05:28:48.000Z","size":5556,"stargazers_count":72,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-28T14:00:53.745Z","etag":null,"topics":["automation","golang","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dunstorm.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-02T13:36:51.000Z","updated_at":"2025-11-25T05:28:48.000Z","dependencies_parsed_at":"2024-06-19T06:18:31.579Z","dependency_job_id":"ff20adfe-75da-4649-a1ff-abca25b019fb","html_url":"https://github.com/dunstorm/pm2-go","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dunstorm/pm2-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunstorm%2Fpm2-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunstorm%2Fpm2-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunstorm%2Fpm2-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunstorm%2Fpm2-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dunstorm","download_url":"https://codeload.github.com/dunstorm/pm2-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunstorm%2Fpm2-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"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":["automation","golang","hacktoberfest"],"created_at":"2026-01-12T01:57:07.285Z","updated_at":"2026-01-12T01:57:07.332Z","avatar_url":"https://github.com/dunstorm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PM2 Logo](https://i.imgur.com/wUgcD2t.png)](https://i.imgur.com/wUgcD2t.png)\n# PM2-GO\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/dunstorm/pm2-go)](https://goreportcard.com/report/github.com/dunstorm/pm2-go)\n\nPM2-GO is a clone of [Unitech/pm2](https://github.com/Unitech/pm2) made using golang. The aim is to make it easy to install. Performance is the bonus.\n\nStarting an application in production mode is as easy as:\n\n```\npm2-go start python app.py\n```\n\nWorks on Linux \u0026 macOS, no support for Windows.\n\n## Start an application\n\nYou can start any application (Node.js, Python, Ruby, binaries in $PATH...) like that:\n\n```\npm2-go start python app.py\n```\n\n## Managing Applications\n\nOnce applications are started you can manage them easily:\n\nTo list all running applications:\n\n```\npm2-go ls\n```\n\nManaging apps is straightforward:\n\n```\npm2-go stop     \u003capp_name|id|json_conf|'all'\u003e\npm2-go restart  \u003capp_name|id|json_conf|'all'\u003e\npm2-go delete   \u003capp_name|id|json_conf|'all'\u003e\npm2-go flush    \u003capp_name|id|json_conf|'all'\u003e\n```\n\nTo see real-time logs:\n\n```\npm2-go logs \u003capp_name|id\u003e\n```\n\nTo dump all processes\n\n```\npm2-go dump\n```\n\nTo restore all processes\n\n```\npm2-go restore\n```\n\n## Extend Logs\n\nLogs can be extended by using `scripts` placed in `$HOME/.pm2-go/scripts`.\n\nTo leverage the use of `scripts`, specify the `scripts` inside `.json` file containing processes\n\ne.g.\n\n```json\n[\n    {\n        \"name\": \"python-test\",\n        \"args\": [\"-u\", \"test.py\"],\n        \"autorestart\": true,\n        \"cwd\": \"./examples\",\n        \"scripts\": [\"logs_date\"],\n        \"executable_path\": \"python3\",\n        \"cron_restart\": \"* * * * *\"\n    }\n]\n```\n\nExample script: [logs_date.sh](https://github.com/dunstorm/pm2-go/blob/main/scripts/logs_date.sh)\n\nIt adds corresponding date \u0026 time to each line from the process output\n\n![](https://i.imgur.com/UFw9PpX.png)\n\n## Log Rotation\n\nLog rotation can be enabled by setting `logrotate` to `true` using\n\n```\npm2-go config set logrotate true\n```\n\nLogs will be rotated every `x` size (default: 10MB) and `y` number of files (default: 10). It can be configured using\n\n```\npm2-go config set logrotate_size 10M (e.g. 10M, 10K, 10G)\npm2-go config set logrotate_max_files 10\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunstorm%2Fpm2-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunstorm%2Fpm2-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunstorm%2Fpm2-go/lists"}