昨晚做了一个大的更新,我的网站现在已经关闭了。我用了cap deploy:rollback,但没走运。错误日志并没有告诉我太多。我在尝试部署时看到的最后一个错误是:
** [out :: website.com] You are trying to install in deployment mode after changing
** [out :: website.com] your Gemfile. Run `bundle install` elsewhere and add the
** [out :: website.com] updated Gemfile.lock to version control.
** [out :: website.com]
** [out :: website.com] You have deleted from the Gemfile:
** [out :: website.com] * asset_sync
command finished in 934ms我的cap tail只显示以下内容,没有错误:
Migrating to AddSessionsTable (20120722094547)
Migrating to AddSlugToUserProjects (20120723204816)
Migrating to AddSlugIndexToUserProjects (20120723205558)
Migrating to CreateFriendlyIdSlugs (20120723210904)
Migrating to AddNameToUsers (20120723221700)
Migrating to AddSlugToUsers (20120723222456)
Migrating to CreateComments (20120724203252)有什么帮助吗?
发布于 2012-07-27 02:24:37
看起来Gemfile的改变并不顺利。修复方法:
killall -9 ruby看起来(在unicorn.log中),错误是: E,2012-07-26T17:27:10.552912 #24818错误--:uninitialized constant AssetSync (NameError)
发布于 2012-07-26 23:39:05
在开发服务器上运行bundle install,然后运行cap deploy。另一种可能的解决方案是:将asset_sync添加回Gemfile。
作为最后的选择,您可以运行cap -d deploy。它将一步一步地运行部署,要求您在每一步上都继续。在单独的shell中登录到生产服务器,并在步骤之间手动进行一些调整。
发布于 2015-03-03 19:31:24
在将一些Gemfile source行转换为块后,我也遇到了同样的错误。
该错误是由于生产环境中的旧Bundler版本(1.7.3)与开发环境中的1.8.3版本造成的。
https://stackoverflow.com/questions/11672726
复制相似问题