Capistrano寻找不存在的版本/文件

时间:2012-02-08 03:16:19

标签: ruby-on-rails deployment capistrano

在部署rails 3.1应用程序时遇到了一些困难时间 - 事情似乎正在起作用,但我遇到了奇怪的错误:

    *** [err :: 97.107.134.41] find: `/home/deploy/myapp/releases/20120208030228/public/images'
*** [err :: 97.107.134.41] : No such file or directory
*** [err :: 97.107.134.41] find: `/home/deploy/myapp/releases/20120208030228/public/stylesheets': No such file or directory
*** [err :: 97.107.134.41] 
*** [err :: 97.107.134.41] find: `/home/deploy/myapp/releases/20120208030228/public/javascripts': No such file or directory
    command finished in 73ms
冷杉,没有“20120208030228”发布。其次,当它是Rails 3应用程序时,它为什么要寻找公共/ javascripts等?

编辑 - 在这里找到答案:Capistrano for Rails 3.1

在deploy.rb文件中添加了“set:normalize_asset_timestamps,false”,错误消失了!

1 个答案:

答案 0 :(得分:0)

从评论中复制答案,以便从“未答复”过滤器中删除此问题:

  

我在这里找到了答案:Capistrano for Rails 3.1我在deploy.rb文件中添加了set:normalize_asset_timestamps,false并修复了它!

fatfrog每个Steve Harman链接到一个有用的问题