I’m figuring out what it takes to compile production assets by running Grunt on the production server, and I’ve run into a snag with capistrano-grunt.
I have node, npm, and grunt-cli installed globally.
When I run “bundle exec cap production deploy”, it fails trying to run:
/usr/bin/env grunt --no-color --gruntfile /srv/www/nateroling/releases/20140806205818/web/app/themes/roots/Gruntfile`
If I try to run that manually on the server, I get
Fatal error: Unable to find local grunt.
It seems like “npm install” would have to be run for each release before Grunt, but I don’t see that mentioned anywhere.
Am I missing something?