[英]Why is my Rails Server is running an older release, instead of current?
I've set up my rails server using nginx, passenger, and deploy with capistrano. 我已经使用nginx,passenger设置了我的rails服务器,并使用capistrano进行了部署。 I've just committed/pushed my project to github and executed cap production deploy
and everything worked normally. 我刚刚将项目提交/推送到github并执行了cap production deploy
并且一切正常。 However my server showed an error, when looking at the error logs it's erroring out on a line of code that is "old". 但是我的服务器显示了一个错误,当查看错误日志时,它在“旧”代码行中出错了。 It's pointing to an earlier release and not the current release. 它指向的是早期版本,而不是当前版本。
I've checked my passenger config (i believe it's the passenger config... in /sites-enabled/default) and the root is pointing to current/public. 我已经检查了我的乘客配置(我相信这是/ sites-enabled / default中的乘客配置...),并且根目录指向当前/公共目录。 Is there anything else that I can check or does anyone know why my server is using a previous release? 还有什么我可以检查的,或者有人知道为什么我的服务器使用的是以前的版本吗? Thanks! 谢谢!
Turns out there was a migration error, and I needed to correct that and then make sure my migrations ran fine. 原来有一个迁移错误,我需要纠正它,然后确保我的迁移运行正常。 Hope this silliness on my part helps someone else in the future. 希望我这种愚蠢的行为将来能对其他人有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.