【发布时间】:2014-05-30 09:09:22
【问题描述】:
所以我正在尝试构建 Heroku iOS 入门应用程序,该应用程序构建一个包含几个条目的表格视图,名为 sushis。我正在尝试在 Mac OSX 10.9.2 上执行此操作,使用通过 rvm 安装的 Ruby 1.9.2(如指南中指定)。我已经为指南中的 gemfile 以及其他几个文件完成了捆绑安装,并且总是遇到依赖问题。
使用指南中的 gemfile(使用不同的来源):
宝石'sinatra'
宝石'独角兽'
宝石'json'
我使用指南中的 Procfile,没有 config.ru 文件。
该指南的链接是: https://devcenter.heroku.com/articles/getting-started-ios-development-sinatra-cedar
我得到的错误是:
foreman start
13:01:30 web.1 | started with pid 18498
13:01:31 web.1 | /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/gems/unicorn- 4.8.2/lib/unicorn/configurator.rb:659:in `parse_rackup_file': rackup file (config.ru) not readable (ArgumentError)
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/gems/unicorn-4.8.2/lib/unicorn/configurator.rb:77:in `reload'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/gems/unicorn-4.8.2/lib/unicorn/configurator.rb:68:in `initialize'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:100:in `new'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:100:in `initialize'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/gems/unicorn-4.8.2/bin/unicorn:126:in `new'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/gems/unicorn-4.8.2/bin/unicorn:126:in `<top (required)>'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/bin/unicorn:23:in `load'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/bin/unicorn:23:in `<main>'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/bin/ruby_executable_hooks:15:in `eval'
13:01:31 web.1 | from /Users/USERNAMEHERE/.rvm/gems/ruby-1.9.2-p320/bin/ruby_executable_hooks:15:in `<main>'
13:01:31 web.1 | exited with code 1
13:01:31 system | sending SIGTERM to all processes
SIGTERM received
我不确定出了什么问题,因为我有他们在指南中要求的一切。
谢谢
编辑: 我现在添加了 config.ru 文件:
require './api'
run API
现在,当我执行“工头运行”时,它会永远运行。怎么回事?
谢谢
【问题讨论】:
标签: ios ruby macos heroku osx-mavericks