2

This is my dir structure

.
├── _layouts
│   └── default.html
├── _posts
├── _site
│   ├── config.ru
│   ├── devart.rb
│   └── index.html
├── config.ru
├── devart.rb
└── index.html

My config.ru

require 'devart.rb'
run Sinatra::Application

When I push this to heroku in the log files I see this error saying devart file is not found during the require. What the heck am I doing wrong??

<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- devart (LoadError)
4

1 に答える 1

2

Ruby 1.9.2では、ロードパスに現在のディレクトリがありません。に変更されました

require './devart.rb'

それを機能させるために。

于 2011-09-23T02:08:54.180 に答える