使用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。不知何故,它没有部署。有谁知道如何解决这个问题?
答案 0 :(得分:0)
我假设你正在使用某种vcs(svn / git / etc。),这些文件被repo忽略了,即。它们没有与应用程序一起部署,因此没有出现在分段上?