“require_tree argument must be a directory” rails 3.1.1 precompile assets

前端 未结 2 1122
别跟我提以往
别跟我提以往 2021-01-30 14:13

I\'ve been round and round here with trying to get the assets to pre-compile on my production server (straightforward ubuntu install with ruby 1.9.2 and Rails 3.1.1, and tried 3

2条回答
  •  忘了有多久
    2021-01-30 14:49

    I ran into this exact same issue you described. My production server was Heroku (cedar stack). In my case the issue was that one of my:

    require_tree ./mobile
    

    Was pointing to a legitimate directory, but this directory had no files. On dev it didn't matter but something about the production setup was resulting in the error, “require_tree argument must be a directory”.

    Hopefully that helps.

提交回复
热议问题