{"id":15858910,"url":"https://github.com/nitrocode/pm2-bug-update-env-variable","last_synced_at":"2025-04-01T19:46:18.179Z","repository":{"id":55525406,"uuid":"142928301","full_name":"nitrocode/pm2-bug-update-env-variable","owner":"nitrocode","description":"A reproduction of a bug in pm2","archived":false,"fork":false,"pushed_at":"2022-08-02T07:35:04.000Z","size":19,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T12:49:03.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/nitrocode.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}},"created_at":"2018-07-30T21:07:24.000Z","updated_at":"2019-02-08T16:59:48.000Z","dependencies_parsed_at":"2022-08-15T02:30:33.510Z","dependency_job_id":null,"html_url":"https://github.com/nitrocode/pm2-bug-update-env-variable","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/nitrocode%2Fpm2-bug-update-env-variable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fpm2-bug-update-env-variable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fpm2-bug-update-env-variable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrocode%2Fpm2-bug-update-env-variable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrocode","download_url":"https://codeload.github.com/nitrocode/pm2-bug-update-env-variable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246705430,"owners_count":20820730,"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-05T21:01:56.577Z","updated_at":"2025-04-01T19:46:18.161Z","avatar_url":"https://github.com/nitrocode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PM2 Bug - Reloading environment variables with zero downtime\n\nIssue [#3192](https://github.com/Unitech/pm2/issues/3192)\n\n# Steps\n\nInstall dependencies\n\n    npm i\n\nRemove stale logs if there are any\n\n    rm -f *.log\n\nStart pm2 with the staging environment\n\n    npx pm2 start ecosystem.config.js --env staging\n\nReload app with zero downtime in a different environment. Also tried `restart`.\n\n    npx pm2 reload all --env production --update-env\n\nCheck app-0.log\n\n    cat app*.log\n\nYou will see\n\n    Server running at http://127.0.0.1:8000/\n    staging\n    Server running at http://127.0.0.1:8000/\n    staging\n\nInstead of\n\n    Server running at http://127.0.0.1:8000/\n    staging\n    Server running at http://127.0.0.1:8000/\n    production\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrocode%2Fpm2-bug-update-env-variable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrocode%2Fpm2-bug-update-env-variable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrocode%2Fpm2-bug-update-env-variable/lists"}