Ruby bundle exec默默无法运行gem

时间:2015-04-10 14:11:28

标签: ruby rubygems bundler

Ruby 2.1.5p273上有RubyGems v2.4.6CentOS 7.1 x86_64。当我运行bundle exec bin/awesome_app时屏幕上没有错误,我的应用程序也无法运行。但是,打开--verbose后,我看到了:

$ bundle --verbose  exec bin/recall_app 
ERROR: "bundle install" was called with arguments ["exec", "bin/recall_app"]
Usage: "bundle install [OPTIONS]" 

但是,我已经在gem的目录中运行了bundle install。我不确定我还需要做什么。

1 个答案:

答案 0 :(得分:1)

根据您的要求:要使用bundler运行Sinatra应用,命令为bundle exec ruby your_main_app_file.rb

Here are the official Docs