Ruby 2.1.5p273
上有RubyGems v2.4.6
和CentOS 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
。我不确定我还需要做什么。
答案 0 :(得分:1)
根据您的要求:要使用bundler运行Sinatra
应用,命令为bundle exec ruby your_main_app_file.rb
。