Rakefile 未与 capistrano 一起部署

发布于 2024-08-16 19:30:27 字数 743 浏览 2 评论 0原文

使用 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。不知怎的,它没有被部署。有谁知道如何解决这个问题?

I am getting this error when deploying with 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] 

It randomly just started occurring. I found out the problem was that my new deploys are missing my rake file...however I am deploying from my staging branch and I can confirm that my staging branch has the Rakefile. Somehow it's not getting deployed. Does anyone know how to troubleshoot this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心意如水 2024-08-23 19:30:27

我假设您正在使用某种 vcs(svn/git/等),这些文件是否被存储库忽略了,即。他们没有与应用程序一起部署,因此没有出现在登台上?

I assume that you are using some sort of vcs (svn/git/etc.), have the files been ignored by the repo, ie. they aren't getting deployed with the app, thus not showing up on staging?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文