ruby - Heroku Cannot Require file -


my sinatra/rack application has following structure

-app  routes.rb --pages   courses_page.rb 

this config.ru

require 'rubygems' require 'bundler/setup'  bundler.require   require 'sinatra/base' require  file.join(file.dirname(__file__), 'app', 'controllers', 'routes')  run myapplication 

it works fine shotgun , rackup locally, when deploy heroku following error :

2013-05-19t23:32:35.880243+00:00 heroku[web.1]: starting process command bundle exec rackup config.ru -p 43506

2013-05-19t23:32:36+00:00 app[web.1]: /app/app/controllers/routes.rb:2:in `require_relative': cannot load such file -- /app/app/pages/courses_page (loaderror)

2013-05-19t23:32:37+00:00 app[web.1]: /app/app/controllers/routes.rb:2:in `'

2013-05-19t23:32:37+00:00 app[web.1]: /app/config.ru:8:in `require'

2013-05-19t23:32:37+00:00 app[web.1]: /app/config.ru:8:in `block in ' 2013-0

this beginning of routes.rb heroku fails load file :

require 'sinatra' require_relative '../pages/courses_page' require_relative '../../app/utilities/yml_file_reader' 

do have idea why application failing on heroku?

the problem came fact named pages directory "pages" , , i'm using mac, case insensitive.

after refactoring name, came across problem, need fix this.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -