在使用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] 它是随机开始发生的。我发现问题是我的新部署缺少我从我的staging分支部署的Rakefile,我可以确认我的staging分支有Rakefile。不知何故,它并没有得到部署。有人知道如何解决这个问题吗?
发布于 2010-01-03 11:47:25
我假设您正在使用某种类型的vcs (svn/git/等),这些文件是否被repo忽略了,即。他们没有与应用程序一起部署,因此不会出现在试运行阶段?
https://stackoverflow.com/questions/1993722
复制相似问题