简体   繁体   English

为什么我的Rails Server运行的是旧版本而不是当前版本?

[英]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.

相关问题 为什么我的系统认为rails服务器正在运行? - why does my system think a rails server is running? 使服务器上的Current Rails应用程序指向以前的版本 - Make the Current Rails application on the server point to a previous release 已解决在部署中,我的 Rails 应用程序将图片保存在与当前版本不同的新 capistrano 版本目录中 - SOLVED In deployment my Rails App save pictures in a new one capistrano release directory different from the current release 为什么仅当使用Firefox并在我的本地服务器上时,Rails应用程序才发送两个Ajax请求而不是一个? - Why is Rails app sending two Ajax requests instead of one, only when using Firefox and on my local server? `bin/rails server` 打开一个文本文件而不是运行本地服务器 - `bin/rails server` opening a text file instead of running a local server 检查日期是否早于Rails中的当前时间 - check if a date is older that the current time in Rails Rails服务器正在运行,但未将我带入我的项目 - Rails server running but not bringing me to my project 为什么,Rails服务器无法在zsh终端中运行? - Why, rails server not running in zsh terminal? 运行“rails server”时,为什么我的本地主机拒绝在 Chrome 和 Firefox 上连接? - When running “rails server” why does my localhost refuse to connect on both Chrome and Firefox? Passenger列出了所有文件,而不是运行我的Rails应用程序 - Passenger is listing all files instead of running my Rails application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM