3

I just deployed, and everything ran fine without errors. Previously it was running fine too. The code in the production is updated in the current version, but when I browse using a new browser, it was using old code.

I have tried restarting unicorn, nginx, but no problem whatsoever. There's no error message.

I tried it on staging environment, everything is good. Just doesn't work on production.

I tried to redeploy too. Nothing changed.

UPDATE 1

Not sure what happened, but after restarting the entire server it went fine again. Anyone knows why?

4

2 回答 2

0

试试这个:

cd /opt/nginx/缓存

rm -rf *

并再次重新启动服务器

让我知道这是否有帮助

于 2013-10-20T16:58:21.537 回答
0

这对我有用:

cd <project dir>
rm -rf tmp/cache
apache2ctl restart

我的情况,我的控制器或助手没有任何变化反映在生产中。这解决了它。

此外,请确保您没有在生产环境中运行 Spring。

ps aux | grep -i spring
killall spring
spring stop

请参阅github上的“部署”

您不得在生产环境中安装 Spring。为防止它被安装,请为 bundle install 命令提供 --without development test 参数,该命令用于在生产机器上安装 gem:

$ bundle install -- 没有开发测试

于 2015-12-24T01:03:11.353 回答