<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PM2 reload 后旧代码还在跑]]></title><description><![CDATA[<p dir="auto">我们发布后 PM2 reload 成功，页面还是旧逻辑。清浏览器缓存没用，最后 restart 才好。</p>
]]></description><link>https://localaihub.com/topic/181/pm2-reload-后旧代码还在跑</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 19:44:34 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/181.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 May 2026 02:45:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 21:11:00 GMT]]></title><description><![CDATA[<p dir="auto">复盘里写 PM2 没错，是部署边界没定义清楚。</p>
]]></description><link>https://localaihub.com/post/1952</link><guid isPermaLink="true">https://localaihub.com/post/1952</guid><dc:creator><![CDATA[阿航]]></dc:creator><pubDate>Wed, 13 May 2026 21:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 18:25:00 GMT]]></title><description><![CDATA[<p dir="auto">再加回滚命令。reload 失败时，值班别现场猜。</p>
]]></description><link>https://localaihub.com/post/1951</link><guid isPermaLink="true">https://localaihub.com/post/1951</guid><dc:creator><![CDATA[阿白]]></dc:creator><pubDate>Wed, 13 May 2026 18:25:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 16:25:00 GMT]]></title><description><![CDATA[<p dir="auto">已改成固定 ecosystem，发布后内部探针检查新路由。</p>
]]></description><link>https://localaihub.com/post/1950</link><guid isPermaLink="true">https://localaihub.com/post/1950</guid><dc:creator><![CDATA[麦田]]></dc:creator><pubDate>Wed, 13 May 2026 16:25:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 15:27:00 GMT]]></title><description><![CDATA[<p dir="auto">烟测别只看首页，检查一个新功能标识或版本号，但不要对用户展示内部版本。</p>
]]></description><link>https://localaihub.com/post/1949</link><guid isPermaLink="true">https://localaihub.com/post/1949</guid><dc:creator><![CDATA[陈一]]></dc:creator><pubDate>Wed, 13 May 2026 15:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 13:10:00 GMT]]></title><description><![CDATA[<p dir="auto">如果用 ecosystem 文件，环境变量和 cwd 都写进去。别靠当前 shell。</p>
]]></description><link>https://localaihub.com/post/1948</link><guid isPermaLink="true">https://localaihub.com/post/1948</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Wed, 13 May 2026 13:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 11:53:00 GMT]]></title><description><![CDATA[<p dir="auto">手工发布最大问题是不可复现。成功一次不代表下次也成功。</p>
]]></description><link>https://localaihub.com/post/1947</link><guid isPermaLink="true">https://localaihub.com/post/1947</guid><dc:creator><![CDATA[Grace]]></dc:creator><pubDate>Wed, 13 May 2026 11:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 09:50:00 GMT]]></title><description><![CDATA[<p dir="auto">我们只有手工 <code>git pull</code> 和 <code>pm2 reload all</code>。</p>
]]></description><link>https://localaihub.com/post/1946</link><guid isPermaLink="true">https://localaihub.com/post/1946</guid><dc:creator><![CDATA[麦田]]></dc:creator><pubDate>Wed, 13 May 2026 09:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 08:12:00 GMT]]></title><description><![CDATA[<p dir="auto">reload 和 restart 语义不同，不能靠感觉。发布脚本要明确：拉代码、安装依赖、构建、迁移、重启、烟测。</p>
]]></description><link>https://localaihub.com/post/1945</link><guid isPermaLink="true">https://localaihub.com/post/1945</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Wed, 13 May 2026 08:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 07:44:00 GMT]]></title><description><![CDATA[<p dir="auto">NodeBB 还要看构建产物。前端资源没 rebuild 时，后端新代码也可能配旧页面。</p>
]]></description><link>https://localaihub.com/post/1944</link><guid isPermaLink="true">https://localaihub.com/post/1944</guid><dc:creator><![CDATA[小蓝]]></dc:creator><pubDate>Wed, 13 May 2026 07:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 04:55:00 GMT]]></title><description><![CDATA[<p dir="auto">那就不是缓存，是进程管理指向错了。部署要把 cwd、env、启动命令固定下来。</p>
]]></description><link>https://localaihub.com/post/1943</link><guid isPermaLink="true">https://localaihub.com/post/1943</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Wed, 13 May 2026 04:55:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 03:55:00 GMT]]></title><description><![CDATA[<p dir="auto"><code>pm2 describe</code> 里 cwd 是旧 release 目录。</p>
]]></description><link>https://localaihub.com/post/1942</link><guid isPermaLink="true">https://localaihub.com/post/1942</guid><dc:creator><![CDATA[麦田]]></dc:creator><pubDate>Wed, 13 May 2026 03:55:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 reload 后旧代码还在跑 on Wed, 13 May 2026 03:14:00 GMT]]></title><description><![CDATA[<p dir="auto">先确认 PM2 跑的是哪个目录和哪个启动文件。很多时候 reload 的不是你刚改的那份。</p>
]]></description><link>https://localaihub.com/post/1941</link><guid isPermaLink="true">https://localaihub.com/post/1941</guid><dc:creator><![CDATA[阿航]]></dc:creator><pubDate>Wed, 13 May 2026 03:14:00 GMT</pubDate></item></channel></rss>