我正在尝试使用橡胶1.15.0gem将一个rails3.1应用程序部署到EC2。我按照这里的快速入门指南中的说明操作:https://github.com/wr0ngway/rubber/wiki/Quick-Start。我还正确地设置了私钥和公钥,如常见问题解答中所述。然而,在接近>cap rubber:generate_staging命令的末尾时,我得到了这个错误:
[production.foo.com] /bin/bash -l -c 'sudo -p '\''sudo password: '\'' bash -l -c '\''cd /mnt/app-production/releases/20120314070940 && RUBBER_ENV=production RAILS_ENV=production ./script/rubber config '\'''
** [out :: production.foo.com] bash: ./script/rubber: No such file or directory
command finished in 418ms
failed: "/bin/bash -l -c 'sudo -p '\\''sudo password: '\\'' bash -l -c '\\''cd /mnt/app-production/releases/20120314070940 && RUBBER_ENV=production RAILS_ENV=production ./script/rubber config '\\'''" on production.foo.com我查看了脚本文件夹,没有找到任何橡皮文件。这个ruber脚本文件似乎不是在vulcanize命令之后生成。有没有人知道我需要什么命令来生成这个橡皮脚本文件?
发布于 2012-05-24 15:41:37
我在谷歌群组上问了这个问题,得到的答案是:
The rubber script was added in the 2.0 prereleases. It looks like you may have the wrong version installed someplace. Can you please verify you're using 1.15.0 both locally and remote?
事实上,这就是问题所在。
发布于 2012-05-24 08:55:40
这与使用错误版本的橡胶的远程版本有关。也许您的本地副本和部署的副本是不同的,因为从分支或其他来源拉取?查看此处:https://groups.google.com/group/rubber-ec2/browse_thread/thread/ff0c8907b4d5aa7f
发布于 2012-03-28 20:16:08
不需要在本地计算机上使用橡胶脚本在ec2实例上运行该脚本。您所需要的只是config/rubber中的配置文件。
https://stackoverflow.com/questions/9697929
复制相似问题