[英]Why does bundle exec puma fail with a Gemfile syntax error?
I'm trying to deploy a Rails 4 app with capistrano 3 to Ubuntu 12.04. 我正在尝试将具有Capistrano 3的Rails 4应用程序部署到Ubuntu 12.04。 I'm using the
capistrano3-puma
gem to handle configuring puma, but when it tries to bundle exec puma
I get this error: 我正在使用
capistrano3-puma
gem处理配置puma,但是当它尝试bundle exec puma
时,出现此错误:
Gemfile syntax error: (Bundler::GemfileError)
/srv/photo_album/releases/20140607043918/Gemfile:41: syntax error, unexpected ':', expecting kEND
...sprockets_better_errors', git: 'git@github.com:RobinClowers/...
I'm able bundle exec rails
just fine from this machine just fine, so I think there is something else going on. 我可以从这台机器上将
bundle exec rails
就可以了,所以我认为还有其他事情要做。 That error looks like ruby 1.8 trying to parse 1.9 hash syntax... 该错误看起来像ruby 1.8试图解析1.9哈希语法...
I figured this out. 我想通了。 I accidentally installed puma with the system ruby (which is 1.8.7), and I had not run
bundle install
yet, so there was no 2.1.1 version install for it to find. 我无意中将puma与系统ruby(即1.8.7)一起安装,并且尚未运行
bundle install
,因此没有要查找的2.1.1版本安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.