Reputation: 1820
After following this angular tutorial, I'm trying to deploy to heroku. I'm getting the error:
rake aborted!
require_tree argument must be a directory
The tutorial instructed me to the remove the line //= require tree .
from application.js. When I add it back for heroku deployment, it breaks my app. Is there any workaround so I don't have to include //= require_tree .
?
I've tried adding //= require_tree ./mobile
and creating /mobile
stub directory with a single file so it would commit. Didn't work.
Edit:
application.js
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require angular
//= require ng-infinite-scroll.min.js
//= require angular-ui-router.min.js
//= require ng-rails-csrf
My angular app config file:
#= require_self
#= require_tree ./services/global
#= require_tree ./services/main
#= require_tree ./filters/global
#= require_tree ./filters/main
#= require_tree ./controllers/global
#= require_tree ./controllers/main
#= require_tree ./directives/global
#= require_tree ./directives/main
Not sure if it's relevant, but my application.css.scss file includes *= require_tree .
Upvotes: 2
Views: 543
Reputation: 2951
Your application.js looks good. You should now look into all the directories that your angluar.js config files is trying to load. Look for directories that are empty. Git does not create a physical directory if a directory is empty. Hope this helps.
Upvotes: 1