【发布时间】:2010-01-03 02:21:21
【问题描述】:
使用 capistrano 部署时出现此错误:
executing "cd /opt/my_app/dev/releases/20100103021722; rake RAILS_ENV=staging db:migrate"
servers: ["96.30.33.84"]
[96.30.33.84] executing command
** [out :: 96.30.33.84] rake aborted!
** [out :: 96.30.33.84]
** [out :: 96.30.33.84] No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
** [out :: 96.30.33.84]
** [out :: 96.30.33.84] /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile'
** [out :: 96.30.33.84]
** [out :: 96.30.33.84] (See full trace by running task with --trace)
** [out :: 96.30.33.84]
它随机开始发生。我发现问题是我的新部署缺少我的 rake 文件......但是我正在从我的暂存分支进行部署,并且我可以确认我的暂存分支具有 Rakefile。不知何故,它没有被部署。有谁知道如何解决这个问题?
【问题讨论】:
-
它也没有部署我的 config/routes.rb 文件和其他文件
标签: ruby-on-rails rake capistrano